enter image description here I use minigames for bundles, but I can't get them cached. Tried to install Headers manually, but they are reset. Neither Pragma nor Cache-Control is installed.

How to properly configure the caching of bundles?

1 answer 1

Perhaps you turned off ver-server caching for static. Which one do you use on iis express? Check settings in web.config -> configuration -> web.server -> staticContent -> clientCache

You can also deploy to iis and check there. Just turn on static caching

  • Iis 7. Web.config contains such an instruction - George Chikhladze
  • <staticContent> <clientCache cacheControlMode = "UseExpires" Tue, 19 Jan 2038 03:14:07 GMT "/> </ staticContent> - George Chikhladze
  • Separate scripts (<scripts> ... </ scripts>) are cached, there are no bundles - George Chikhladze