- Notifications
You must be signed in to change notification settings - Fork5.5k
Disable cache when downloading file#3484
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Disable cache when downloading file#3484
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Disable cache and etags
takluyver commentedMar 31, 2018
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 |
takluyver commentedMar 31, 2018
(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) |
ashleytqy commentedApr 1, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I think the Cache-Control fixed it – I'll remove the |
ashleytqy commentedApr 10, 2018
hi@takluyver ! does this look good to you? |
takluyver commentedApr 10, 2018
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 |
ashleytqy commentedApr 10, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@takluyver yup! i’ll also add the change to |
takluyver commentedApr 11, 2018
Thanks :-) |
Uh oh!
There was an error while loading.Please reload this page.
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).