Do external JS files get cached the same way images do?
If I have multiple pages that refer to a single pagehandler script,开发者_Python百科 will the script be called from the browser cache if I navigate from one of these pages to another?
Yes. Here's a workaround: When does browser automatically clear cache of external JavaScript file?
Yes. External javascript files can be cached in the same way as images.
Your server (apache, iis, etc) will need to be configured to send out the correct http headers to ensure the browser knows if/how to cache the assets.
精彩评论