Skip to content

Commit

Permalink
Merge pull request #766 from aptible/sc-23324
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-herman authored Apr 1, 2024
2 parents 251e2b9 + 4db33ac commit 8e7f06a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ http {
index index.html;

location ~* \.(?:css|js)$ {
try_files $uri =404;
try_files $uri /index.html;
expires 1y;
access_log off;
add_header Cache-Control "public";
}

# Any route containing a file extension (e.g. /devicesfile.js)
location ~ ^.+\..+$ {
try_files $uri =404;
try_files $uri /index.html;
}

# Any route that doesn't have a file extension (e.g. /devices)
Expand Down

0 comments on commit 8e7f06a

Please sign in to comment.