fix: add cache rules
This commit is contained in:
@@ -21,9 +21,12 @@ location = /s {
|
||||
}
|
||||
|
||||
# --- Serve frontend index.html at /s/ ---
|
||||
# no-store prevents Cloudflare and browsers from caching the HTML entry point,
|
||||
# so updated ?v= cache-busters on CSS/JS are always picked up immediately.
|
||||
location = /s/ {
|
||||
root /root/repo/urlshortener/static;
|
||||
try_files /index.html =404;
|
||||
add_header Cache-Control "no-store";
|
||||
}
|
||||
|
||||
# --- Serve frontend static assets (CSS, JS, etc.) ---
|
||||
|
||||
Reference in New Issue
Block a user