Update cache example

This commit is contained in:
Laurent Destailleur 2016-06-08 18:21:05 +02:00
parent 8b446faa53
commit e5aa79364a
2 changed files with 15 additions and 2 deletions

View File

@ -5,4 +5,17 @@ Require all denied
<IfVersion < 2.3> <IfVersion < 2.3>
Order deny, allow Order deny, allow
Denied from all Denied from all
</IfVersion> </IfVersion>
# OPTIMIZE: To use cache on static pages (A259200 = 1 month, A7200 = 2 hours).
# Note that you must also enable the module mod_expires.
#ExpiresActive On
#ExpiresByType image/x-icon A2592000
#ExpiresByType image/gif A2592000
#ExpiresByType image/png A2592000
#ExpiresByType image/jpeg A2592000
#ExpiresByType text/css A2592000
#ExpiresByType text/javascript A2592000
#ExpiresByType application/x-javascript A2592000
#ExpiresByType application/javascript A2592000

View File

@ -745,7 +745,7 @@ SSLCertificateKeyFile "WAMPROOT/myserver.key"
# You can also set this with constant MAIN_OPTIMIZE_SPEED and bit 2 set. # You can also set this with constant MAIN_OPTIMIZE_SPEED and bit 2 set.
#TODO #TODO
# OPTIMIZE: To use cache on static pages (A259200 = 1 month). # OPTIMIZE: To use cache on static pages (A259200 = 1 month, A7200 = 2 hours).
# Note that you must also enable the module mod_expires. # Note that you must also enable the module mod_expires.
#ExpiresActive On #ExpiresActive On
#ExpiresByType image/x-icon A2592000 #ExpiresByType image/x-icon A2592000