Add cache headers for website static output
This commit is contained in:
parent
307094794f
commit
2f3d1e2a9b
|
|
@ -22,6 +22,14 @@ RewriteRule ^/?(?:index\.php)?$ /static-pages/nah/index.html [END]
|
||||||
RewriteCond %{QUERY_STRING} !(^|&)lang= [NC]
|
RewriteCond %{QUERY_STRING} !(^|&)lang= [NC]
|
||||||
RewriteRule ^/?(cv|blog|demos|homelab-tree)\.php$ /static-pages/nah/$1.html [END]
|
RewriteRule ^/?(cv|blog|demos|homelab-tree)\.php$ /static-pages/nah/$1.html [END]
|
||||||
|
|
||||||
|
<FilesMatch "\.(?:html|css|js|webp)$">
|
||||||
|
Header set Cache-Control "public, max-age=300, s-maxage=3600"
|
||||||
|
</FilesMatch>
|
||||||
|
|
||||||
|
<LocationMatch "^/(?:translate|save_lang|save_idea|visitor_ideas)\.php$">
|
||||||
|
Header set Cache-Control "no-store"
|
||||||
|
</LocationMatch>
|
||||||
|
|
||||||
<FilesMatch "\.php$">
|
<FilesMatch "\.php$">
|
||||||
SetHandler "proxy:fcgi://127.0.0.1:9000"
|
SetHandler "proxy:fcgi://127.0.0.1:9000"
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue