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).