dev/provisioning/modules/apache/templates/mod/expires.conf.erb
author ymh <ymh.work@gmail.com>
Thu, 09 Feb 2017 15:05:36 +0100
changeset 504 4ab820b387da
parent 28 b0b56e0f8c7f
permissions -rw-r--r--
Correct the handling of created date. Should correct #0025744

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 -%>