Skip to content

Commit

Permalink
Change caching extensions (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergTyapkin authored Dec 16, 2024
1 parent 7526e41 commit d465020
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ location / { # try files for SPA
try_files $uri $uri/ $uri.html /index.html;
}

location ~* \.(?:css|js)$ { # 1h storing on client for CSS+JS
location ~* \.(?:css|js|html)$ { # 1h storing on client for CSS+JS+HTML
expires 1h;
add_header Cache-Control "public";
}

location ~* \.(?:json|png|jpg|jpeg|gif|svg|ico|ttf|otf)$ { # 7d storing on client for static images+fonts
location ~* \.(?:png|jpg|jpeg|gif|svg|ico|ttf|otf)$ { # 7d storing on client for static images+fonts
expires 7d;
add_header Cache-Control "public";
}

0 comments on commit d465020

Please sign in to comment.