Conf : test caching conf

#5674
This commit is contained in:
Maxime Thévenot
2017-11-21 10:12:21 +01:00
parent f160c18c19
commit 15d94859e6
+8 -8
View File
@@ -1,11 +1,11 @@
# -------- CACHING --------
# Media: images, icons, video, audio, HTC
#location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
# expires 1M;
# access_log off;
# add_header Cache-Control "public";
#}
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
expires 1M;
access_log off;
add_header Cache-Control "public";
}
# CSS and Javascript
location ~* \.(?:css|js)$ {
@@ -15,9 +15,9 @@ location ~* \.(?:css|js)$ {
}
# cache.appcache, your document html and data
location ~* \.(?:manifest|appcache|html?|xml|json)$ {
expires -1;
}
#location ~* \.(?:manifest|appcache|html?|xml|json)$ {
# expires -1;
#}
# Feed
location ~* \.(?:rss|atom)$ {