?
Solved

how do you prevent firefox from caching javascript?

Posted on 2009-04-15
3
Medium Priority
?
746 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

It's here again; Microsoft is launching a new version of Internet Explorer: Internet Explorer 9, with noticeable changes on its interface, functions and new tools. As they say on its promotional video: "It's time to play, on a more beautiful web", f…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
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 +…
Suggested Courses
Course of the Month13 days, 13 hours left to enroll

801 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