Skip to content

Commit 08aea51

Browse files
Avoid caching index.css and index.js
1 parent 394bae3 commit 08aea51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

amplipi/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ async def get_response(self, path, scope):
946946

947947
content_type = response.headers.get("content-type", "")
948948

949-
if content_type.startswith("text/html"):
949+
if content_type.startswith("text/html") or "index" in path:
950950
# index.html (root + SPA fallback)
951951
response.headers["Cache-Control"] = "no-cache, no-store, must-revalidate"
952952
response.headers["Pragma"] = "no-cache"

0 commit comments

Comments
 (0)