2

I am using clientCache in my web.config:

<staticContent>
      <clientCache cacheControlMode="UseMaxAge"cacheControlMaxAge="30.00:00:00"/>
</staticContent>

and in the controller on action I am using the OutputCache attribute:

[OutputCache(Duration = 300)] // 300 for 5 mins

The problem is I am getting the error in google speed insight:

enter image description here

Does anyone know how I can leverage browser caching for images in mvc?

Jeremy Thompson
  • 61,933
  • 36
  • 195
  • 321
namneet singh
  • 53
  • 1
  • 1
  • 7

0 Answers0