Cache test

This commit is contained in:
sauravdhakal12
2026-04-02 13:34:57 +00:00
parent 29913c972f
commit 014e7cb8ed

View File

@@ -89,9 +89,11 @@ ci.sauravdhakal.com.np {
sauravdhakal.com.np, www.sauravdhakal.com.np { sauravdhakal.com.np, www.sauravdhakal.com.np {
root * /home/saurav/site/public root * /home/saurav/site/public
header /static/* Cache-Control "public, max-age=31536000, immutable" # assets forever
header /assets/* Cache-Control "public, max-age=31536000, immutable" # assets forever
# This is where you learn caching # This is where you learn caching
header Cache-Control "public, max-age=3600" # cache 1 hour by default header Cache-Control "public, max-age=3600" # cache 1 hour by default
header /static/* Cache-Control "public, max-age=31536000, immutable" # assets forever
file_server file_server
encode gzip encode gzip