mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 04:24:45 -04:00
Caches h5ai files only for 7 days now.
This commit is contained in:
parent
81cce9e07c
commit
c2e76dee24
1 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,4 @@
|
||||||
|
|
||||||
|
|
||||||
Options -Indexes
|
Options -Indexes
|
||||||
|
|
||||||
AddType text/html .php
|
AddType text/html .php
|
||||||
|
@ -9,6 +8,7 @@ AddType text/html .php
|
||||||
# if php doesn't get interpreted try to
|
# if php doesn't get interpreted try to
|
||||||
# uncomment one of the following lines
|
# uncomment one of the following lines
|
||||||
###########################################
|
###########################################
|
||||||
|
|
||||||
#AddHandler application/x-httpd-php .php
|
#AddHandler application/x-httpd-php .php
|
||||||
#AddHandler application/x-httpd-php5 .php
|
#AddHandler application/x-httpd-php5 .php
|
||||||
#AddHandler application/x-httpd-php52 .php
|
#AddHandler application/x-httpd-php52 .php
|
||||||
|
@ -19,19 +19,19 @@ AddType text/html .php
|
||||||
#AddHandler php53-script .php
|
#AddHandler php53-script .php
|
||||||
|
|
||||||
|
|
||||||
# cache images, css and js for 52 weeks
|
# cache images, css and js for 7 days
|
||||||
<IfModule headers_module>
|
<IfModule headers_module>
|
||||||
<FilesMatch "\.png$">
|
<FilesMatch "\.png$">
|
||||||
Header set Cache-Control "max-age=31449600, public"
|
Header set Cache-Control "max-age=604800, public"
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
<FilesMatch "\.css$">
|
<FilesMatch "\.css$">
|
||||||
Header set Cache-Control "max-age=31449600, public"
|
Header set Cache-Control "max-age=604800, public"
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
<FilesMatch "\.js$">
|
<FilesMatch "\.js$">
|
||||||
Header set Cache-Control "max-age=31449600, public"
|
Header set Cache-Control "max-age=604800, public"
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
<FilesMatch "thumb-.*\.jpg$">
|
<FilesMatch "thumb-.*\.jpg$">
|
||||||
Header set Cache-Control "max-age=31449600, public"
|
Header set Cache-Control "max-age=604800, public"
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue