Skip to content

Commit

Permalink
Merge pull request #573 from DataRecce/feature/drc-995-browsing-recce…
Browse files Browse the repository at this point in the history
…-server-failed

[Feature] Disable static file cache when access recce homepage
  • Loading branch information
wcchang1115 authored Jan 10, 2025
2 parents f39dad4 + 2dd5aa1 commit 3535f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recce/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ async def disable_cache(request: Request, call_next):

# disable cache for '/' and '/index.html'
if request.url.path in ['/', '/index.html']:
response.headers['Cache-Control'] = 'no-cache'
response.headers['Cache-Control'] = 'no-store'

return response

Expand Down

0 comments on commit 3535f34

Please sign in to comment.