2 ms·
Clearly a bug on Twitter's side but the behavior to disable caching when content-disposition is used seems sensible.
by the_mitsuhiko 7y ago
Clearly a bug on Twitter's side but the behavior to disable caching when content-disposition is used seems sensible.
- JBReefer 7y agoWhy? It’s not in the spec, how am I, the developer, supposed to know that the browser is being non-compliant?
- detaro 7y agoIt's in the spec that the browser is allowed to pick a duration if you don't tell it one, so you know that you don't know how long it is cached if you do not set a header. https://news.ycombinator.com/item?id=22775479 https://news.ycombinator.com/item?id=22775479
- the_mitsuhiko 7y agoBoth browsers are compliant. However there is generally no reason to cache a resource with content disposition so it seems sensible for Firefox to adopt this behavior.