shex
shex

Reputation: 346

Browser doesn't cache images despite cache header when html is not cached

I'm caching our generated images using the HTTP header "Cache-Control", however, when I don't cache the HTML file (comprising those img tags) using "no-cache" I see further requests sent to the server (as I add, remove, and re-add those tags). Caching the HTML file results in cached images (and no further requests).
The Only similar case I could find is this.
Any lead/link will be appreciated.

Browser: Version 32.0.1661.0 canary Aura
p.s. I very much prefer keeping the HTML file not cached.

Upvotes: 0

Views: 3620

Answers (1)

shex
shex

Reputation: 346

Eugene Olshenbaum answered on twitter: "close developer tools, when it is open, chrome ignores headers :))" The cache was "disabled" while the dev tools were open. Not sure why I didn't see any calls to the server if the HTML file was cached.

Upvotes: 5

Related Questions