Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache-Control headers causes browser to cache incorrectly after updates #140

Open
JackLewis-digirati opened this issue Nov 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@JackLewis-digirati
Copy link
Collaborator

JackLewis-digirati commented Nov 12, 2024

From Gary:

we have Cache-Control headers in addition to etags in iiif-presentation and it seems to be breaking browser caching (the browser isn't sending an If-None-Match)
I had to clear my browser cache to get an updated response from /collections/root?page=1&type=Manifest

WE need to stop the browser caching responses after an update to a resource - might be complicated by how the hierarchical resources live on a different URL to create/update endpoints meaning the caching isn't invalidated

NOTE: look into Content-Location headers which should cause the browser to remove items from other URL's - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Location

alternatively, no-cache will work, with a draft implementation here - https://github.com/dlcs/iiif-presentation/pull/141/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant