Solved

how do you prevent firefox from caching javascript?

Posted on 2009-04-15
3
734 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you been browsing the internet, with multiple tabs open, and closed the wrong one? Have you ever clicked 'Close all tabs' instead of 'Close current tab' ? Internet Explorer 8 now brings to you, what Firefox has had for a wh…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

785 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