Solved

how do you prevent firefox from caching javascript?

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I had to do a bit of research to find the answer to this question so I thought I'd share my results.  Due to our outdated mainframe systems, we need to downgrade IE9 to IE8 in order to stay compatible.  We also needed to downgrade Java.  In order to…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
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.
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.

726 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