简体   繁体   中英

some files not cached in requirejs - is that an issue?

Using RequireJS I am developing my application. I noticed from my browser developer tools (attached) some of files (router.js, views.js, model.js, etc.) say cached "no". What does that mean? What is wrong here?

在此处输入图片说明

No, this isn't a issue. The cache of RequireJS is not only client-side dependend. It's server-side dependent too. If you not define the correct headers (Expires, Max-Age, ETag, etc.), your browser can not cache the script, and the result is what you are checking in your developer tools.

I can that Cache Busting, as in the URL visible in your screenshot, is deactivated, and because this you can need only check the configurations in your server(s).

Good luck.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM