dev/provisioning/modules/apache/templates/mod/expires.conf.erb
author Chloe Laisne <chloe.laisne@gmail.com>
Mon, 30 May 2016 23:58:34 +0200
changeset 176 d1baf7ccecc8
parent 28 b0b56e0f8c7f
permissions -rw-r--r--
Add `thematiques` components

ExpiresActive <%= scope.function_bool2httpd([@expires_active]) %>
<%- if ! @expires_default.nil? and ! @expires_default.empty? -%>
ExpiresDefault "<%= @expires_default %>"
<%- end -%>
<%- if ! @expires_by_type.nil? and ! @expires_by_type.empty? -%>
<%-   [@expires_by_type].flatten.each do |line| -%>
<%-     line.map do |type, seconds| -%>
ExpiresByType <%= type %> "<%= seconds -%>"
<%-     end -%>
<%-   end -%>
<%- end -%>