Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ server {

gzip_static on;

# Set root for all locations
root /usr/share/nginx/html;

# Security headers for all locations
Expand All @@ -22,11 +21,17 @@ server {
add_header Cache-Control "public";
}

# Cache, but revalidate, for images, css, fonts, and icons folders
location ~* ^/console/(images|css|fonts|icons)/ {
expires 1d;
add_header Cache-Control "public, must-revalidate";
}

# All other /console requests (no cache)
location /console {
index index.html index.html;
try_files $uri /console/index.html;

expires 0;
add_header Cache-Control "no-store";
add_header Pragma "no-cache";
Expand Down