Cache test
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user