最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Forcing(version 10) Firefox Reload - Stack Overflow

programmeradmin1浏览0评论

I googled

Firefox Force Reload and read / scanned the first 4 hits.

All say to use either Control R or Control F5. Neither of these work for me. The only way I I have been able to force a reload (of my javascript) is by re-starting.

I pull in 3 files CSS, HTM, and JS all by Ajax Post. Oddly, the CSS and HTM reload but the .js is cached.

It's looks like the browser is checking file extensions of ajax posts and auto caching .js despite the reload method.

Is there a way to force a reload of .js. I just double checked the above solutions and they do not work.

Furthermore, What is the mechanism that let's Firefox know when to cache and when to download?

I googled

Firefox Force Reload and read / scanned the first 4 hits.

All say to use either Control R or Control F5. Neither of these work for me. The only way I I have been able to force a reload (of my javascript) is by re-starting.

I pull in 3 files CSS, HTM, and JS all by Ajax Post. Oddly, the CSS and HTM reload but the .js is cached.

It's looks like the browser is checking file extensions of ajax posts and auto caching .js despite the reload method.

Is there a way to force a reload of .js. I just double checked the above solutions and they do not work.

Furthermore, What is the mechanism that let's Firefox know when to cache and when to download?

Share Improve this question edited Jul 7, 2012 at 22:50 Charles 51.5k13 gold badges106 silver badges144 bronze badges asked Jul 7, 2012 at 20:32 user656925user656925
Add a ment  | 

3 Answers 3

Reset to default 4

What I normally do is disable the caches built into firefox. Then all you have to do is refresh the page no special key strokes required. To do this in your url bar enter about:config then find the settings browser.cache.disk.enable and browser.cache.memory.enable set them both to false and restart. Problem solved forever.

To force reload, press Control + Shift + R. This will empty the cache and reload all page elements.

Open the javascript file in its own tab and control+F5 on that page. Then reload the page that uses the javascript file. That worked for me when all other methods failed.

发布评论

评论列表(0)

  1. 暂无评论