[apache2] Add public asset caching
This commit is contained in:
parent
274ce95d13
commit
6b03645dfe
1 changed files with 16 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
<FilesMatch "\.tpl">
|
<FilesMatch "\.tpl">
|
||||||
<IfModule authz_host_module>
|
<IfModule authz_host_module>
|
||||||
#Apache 2.4
|
#Apache 2.4
|
||||||
Require all denied
|
Require all denied
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
@ -8,3 +8,18 @@
|
||||||
Deny from all
|
Deny from all
|
||||||
</IfModule>
|
</IfModule>
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
|
<IfModule mod_expires.c>
|
||||||
|
ExpiresActive On
|
||||||
|
ExpiresByType image/gif "access plus 1 year"
|
||||||
|
ExpiresByType image/jpeg "access plus 1 year"
|
||||||
|
ExpiresByType image/png "access plus 1 year"
|
||||||
|
ExpiresByType application/javascript "access plus 1 month"
|
||||||
|
ExpiresByType text/javascript "access plus 1 month"
|
||||||
|
ExpiresByType text/css "access plus 1 month"
|
||||||
|
</IfModule>
|
||||||
|
<IfModule mod_headers.c>
|
||||||
|
<FilesMatch "\.(gif|jpe?g|png|js|css)$">
|
||||||
|
Header set Cache-Control "public"
|
||||||
|
</FilesMatch>
|
||||||
|
</IfModule>
|
Loading…
Reference in a new issue