1

I am trying to configure caching static page elements (images, scripts, styles). file web.config.

<clientCache cacheControlCustom="public;max-age"
             cacheControlMaxAge="1.00:00:00"
             cacheControlMode="UseMaxAge" />

Controller

Response.Cache.SetExpires(DateTime.Now.AddSeconds(30));
Response.Cache.SetCacheability(HttpCacheability.Public);

enter image description here

What is the reason why there is no cached content?

DavidG
  • 95,392
  • 10
  • 185
  • 181

0 Answers0