Solved

how do you prevent firefox from caching javascript?

Posted on 2009-04-15
3
732 Views
Last Modified: 2013-12-08
Is there a way to prevent firefox from caching anything uning s browser setting and not changing the webpage?

A user is accessing my ssl sharepoint site and is complaing about slowness.  It works well for me and I think it might be a caching issue.  I have several users so I don't know what kind of browse they use.  I want to do some testing on my end first and dont' want to change the sites code.  I just want to prevent the javascript from being cached.
0
Comment
Question by:jackjohnson44
  • 2
3 Comments
 
LVL 35

Expert Comment

by:torimar
ID: 24151230
There is no javascript specific setting, but you can prevent your browser from caching HTTP/HTTPS pages.
In the address bar, type:
about:config

In the filter bar, type "cache", then search for "network.http.use-cache" and set it to "false". Here you can also disable caching completely by setting "browser.cache.disk.enable" to 'false'.

Another way would be server-side, by setting your server to send no-cache headers for .js files. I only know about .htaccess methods for Apache though, not for IIS:
http://www.askapache.com/htaccess/using-http-headers-with-htaccess.html#prevent-caching-with-htaccess
0
 

Author Comment

by:jackjohnson44
ID: 24154516
thanks, how did you know that?
0
 
LVL 35

Accepted Solution

by:
torimar earned 500 total points
ID: 24163363
Well, "about:config" is the usual way of deep-tweaking Firefox.
The rest was research in the Mozilla knowledgebase and on some mailing lists.

Hope it helped you.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Due to recent concerns over the inevitable depletion of the current pool of IPv4 addresses and the desire to provide additional functionality for modern devices, an upgrade to IPv6 on my Internet connection was needed for me to explore the world of …
#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now