Skip to content

Commit d8692ae

Browse files
authored
Revert "Simplify caching setup" (openmrs#880)
1 parent 723a9a5 commit d8692ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ http {
2626
}
2727

2828
# never cache the importmap, routes, or service-worker
29-
location /service-worker.js {
29+
location ~* (((importmap|routes\.registry)\.json)|service-worker\.js)$ {
3030
expires -1d;
3131
try_files $uri =404;
3232
}
3333

3434
# handle anything with a "." that's not an HTML
3535
# assume it's a static file
3636
location ~* \.(?!html?)[^.]+$ {
37-
add_header 'Cache-Control' 'no-cache, must-revalidate'
37+
expires 6M;
3838
try_files $uri =404;
3939
}
4040

0 commit comments

Comments
 (0)