Home » Javascript » asp.net mvc area static .js file cache-control

asp.net mvc area static .js file cache-control

Posted by: admin October 18, 2018 Leave a comment

Questions:

I have an asp.net mvc app with areas.
some of static .js files stored at regular folders outside of /areas
some of static .js files stored inside of /areas

The .js outside of /areas can be cached while there’s cache-control
in response header

but .js inside of /areas CANNOT be cached and there’s “NO” cache-control
in response header

what made this happened? and how do I deal with it? thanks

Answers: