-
Notifications
You must be signed in to change notification settings - Fork 275
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
rack_response ETAG is weakly generated #703
Comments
Proposed PR: #704 |
👍 for this. |
So, In general, in my experience with shrine, things are set up so the path on disk or in other storage, which is what This is implemented in default I'm curious, have you over-ridden Or, are you using shrine in some way that actually manages to change the content on a file on disk/in storage instead of treating it as immutable? I also worry that is going to cause other problems. I have no problem with allowing passing in an etag as in patch, but I worry the fact that it is necessary for the reasons stated here reveal other things likely to cause other problems! |
Yes, I overrode |
Thanks @prem-prakash ! While this is possible to do, I'm going to PR a change to "changing location" docs to suggest that if you don't have a reason not to, it's best to keep unique immutable storage locations, because it makes many things easier! |
The
rack_response
plugin ETAG response header is generated based on attributes that can remain the same even if the file content has been changed.This may result in unwanted response caching.
The text was updated successfully, but these errors were encountered: