-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Disable cache when downloading file #3484
Disable cache when downloading file #3484
Conversation
Disable cache and etags
Was it actually computing the etags wrong, or was it the Cache-Control change that fixed it? Looking through tornado's code, it looks like it computes the etag by hashing the content when we call |
(I'd assumed before that tornado wasn't setting etags by default except for static files, and that we could try setting it from our code) |
I think the Cache-Control fixed it – I'll remove the |
hi @takluyver ! does this look good to you? |
Oh, sorry, it dropped off my radar. It does look good, thanks. I assume you've tested that it fixes the issue? I think we might also need the same in the |
@takluyver yup! i’ll also add the change to |
Thanks :-) |
Fixes #3251
The route handler (
NbconvertFileHandler
) that processes a download request did not have cache-control header so this adds the header so ensure that the downloaded pdf / markdown etc. file will always be the most recent (not cached).