Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kogeler committed Oct 28, 2024
1 parent a9e3c5b commit c5bbddd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ http {
# Serve HTML files without cache
location ~* \.(html|htm|shtml|xhtml)$ {
expires off;
add_header Cache-Control "no-cache" always;
add_header Cache-Control "no-cache";
try_files $uri $uri/ /index.html;
}

# Serve other files with long-term caching
location / {
expires 1y;
add_header Cache-Control "public, max-age=31536000, immutable" always;
expires off;
add_header Cache-Control "public, max-age=31536000, immutable";
try_files $uri $uri/ /index.html;
}

Expand Down

0 comments on commit c5bbddd

Please sign in to comment.