add back caching, but for 10 minutes
This commit is contained in:
20
nginx.conf
20
nginx.conf
@@ -42,19 +42,19 @@ http {
|
|||||||
|
|
||||||
# Temporary: Disable caching during development
|
# Temporary: Disable caching during development
|
||||||
location ~* \.(css|js|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
|
location ~* \.(css|js|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
|
||||||
# expires 1w;
|
expires 10m;
|
||||||
# add_header Cache-Control "public, immutable";
|
add_header Cache-Control "public, immutable";
|
||||||
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
# add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||||
add_header Pragma "no-cache";
|
# add_header Pragma "no-cache";
|
||||||
add_header Expires "0";
|
# add_header Expires "0";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.html$ {
|
location ~* \.html$ {
|
||||||
# expires 1h;
|
expires 10m;
|
||||||
# add_header Cache-Control "public";
|
add_header Cache-Control "public";
|
||||||
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
# add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||||
add_header Pragma "no-cache";
|
# add_header Pragma "no-cache";
|
||||||
add_header Expires "0";
|
# add_header Expires "0";
|
||||||
}
|
}
|
||||||
|
|
||||||
location /health {
|
location /health {
|
||||||
|
|||||||
Reference in New Issue
Block a user