You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
All the normal content I'd expect to be cached under /static/ have headers that prevent caching. Caching is prevented on browser and CDNs.
Describe the bug
All the normal content I'd expect to be cached under
/static/
have headers that prevent caching. Caching is prevented on browser and CDNs.Expires
is set to the current time so both headers need to be fixed.This was briefly mentioned in #2053 (comment) and the code is probably https://github.com/dgtlmoon/changedetection.io/blob/master/changedetectionio/flask_app.py#L1248, but it's not obvious to me what is setting this. Maybe it's default for flask because it assumes dynamic content by default?
Workaround: In Cloudflare, I can set up a specific Cache Rule for anything under
/static/
to force a cache TTL header.Version
Exact version in the top right area: v0.47.06
How did you install?
Docker: ghcr.io/dgtlmoon/changedetection.io
To Reproduce
Steps to reproduce the behavior:
docker run -p "80:5000" ghcr.io/dgtlmoon/changedetection.io
curl -v http://localhost/static/js/jquery-3.6.0.min.js -o /dev/null
Expected behavior
Static content should have a pretty long max-age cache and expiry.
The text was updated successfully, but these errors were encountered: