0

I have tried set this in web.config:

<staticContent>
    <clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="1.00:00:00" />
</staticContent>

I also modified the value through the GUI but my Response Headers still says no-cache: enter image description here

I read several posts and this one looked promising but still I can't get it to work.

From what I understand from this image the image bbb.png is taken from the cache but Page Speed (after refresh, and after waiting a couple of minutes) that it still is not being cashed: enter image description here

Why isn't this working?

Community
  • 1
  • 1
Westerlund.io
  • 2,743
  • 5
  • 30
  • 37
  • 1
    You're not reading it correctly. The **Request** header says "no-cache" but the **Response** header is correct. I'll agree it is silly that Chrome puts the Response before the Request, though. – Dai Nov 11 '16 at 03:31
  • I might have read wrong but under Google `Page Speed` this image (and the rest of the images) still appears. The image is taken through a link from one of our sub sites, does that matter? – Westerlund.io Nov 11 '16 at 03:35
  • To clarify: The sub site has the same setting and it has the `cacheControlMaxAge`set to 1800 seconds which is 30 minutes. So that number is correct. However, it's still not caching anyting. – Westerlund.io Nov 11 '16 at 03:36

1 Answers1

0

According to https://varvy.com/pagespeed/ I'm not caching 3rd party images: enter image description here

Westerlund.io
  • 2,743
  • 5
  • 30
  • 37