views:

719

answers:

5

Thus far this is what I've tried, I'm using Firefox 3.07

  1. Make sure in about:config that the property browser.cache.check_doc_frequency is set to 1 which the browser interprets as "check for a new page every time".

  2. Make sure in about:config that the property security.fileuri.strict_origin_policy is set to false.

  3. When opening your browser be sure to specify to the testrunner.html page which test you want to run using the testpage parameter,

    I.E.: file:///.../testRunner.html?testpage=c:/temp/someTest.html

  4. Tak an additional random parameter on the end to ensure that the cache is gone.

Everything above seems to work, except it is still caching my *.js files for some stupid reason. I really thought it would have had to do with changing the random parameter at the end to kill the cache, but that doesn't seem to be doing the trick. What else can be done to make JSUnit work with Firefox 3.07? The files are located on my hdd.

A: 

Have you tried CTRL + SHIFT + R to refresh without using cache?

gregers
A: 

Hi, gregers,

No, that doesn't work. The problem is that it is caching the *.js files. When you do CTRL + SHIFT + R it is only refreshing the test runner page.

A: 

Thus far this is what I've tried, I'm using Firefox 3.07

1.

  Make sure in about:config that the property browser.cache.check_doc_frequency is set to 1 which the browser interprets as "check for a new page every time".

2.

  Make sure in about:config that the property security.fileuri.strict_origin_policy is set to false.

3.

  When opening your browser be sure to specify to the testrunner.html page which test you want to run using the testpage parameter,

  I.E.: file:///.../testRunner.html?testpage=c:/temp/someTest.html

4.

  Tak an additional random parameter on the end to ensure that the cache is gone.

Everything above seems to work, except it is still caching my *.js files for some stupid reason. I really thought it would have had to do with changing the random parameter at the end to kill the cache, but that doesn't seem to be doing the trick. What else can be done to make JSUnit work with Firefox 3.07? The files are located on my hdd.

leeand00
A: 

Try editing the network.http.use-cache property in about:config.

e.g., network.http.use-cache = false

Marcus
A: 

Was pulling my hair out with same problem.

This finally worked for me:

Firefox Menu: Tools/Web Developer/Disable/Disable Cache

Bart