question

ChrisB avatar image
ChrisB asked ChrisB posted

How to clear Web cache with internal browser?

I'm testing a web application where I'm changing the source and then continue testing. My changes are not reflected in iTest; if I do a snapshot then additions I have made are not present.

 

I somehow cleared the cache in 3.2 by browsing to about:config and changing some "cache" entries, but in 3.3 I can't get this to work. How can I either clear the cache, or else stop caching?

 

Thanks,

Chris

iTestGUI Testing(Web-Java Swing-etc)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

PreetS avatar image
PreetS answered PreetS posted

ChrisB,

 

When you say you are changing the source, does that mean you are changing it via injecting javascript on the page using 'eval' action? 

Or arey ou actually changing the web page code directly on the server?

 

Does the page see your changes when you refresh the page?

2 comments
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ChrisB avatar image ChrisB commented ·

I'm changing the actual HTML source in a text editor. I need iTest to get the new page that is served up from the web server, but it seems to be using a cached copy. How can I clear the cache, or disable caching altogether?

 

Regards,

chris

0 Likes 0 ·
PreetS avatar image PreetS ChrisB commented ·

Go to "about:config" 

Set "browser.cache.memory.enable" to false

Set "browser.cache.disk.enable" to false

 

This *should* do the trick.  

0 Likes 0 ·
ChrisB avatar image
ChrisB answered ChrisB posted

We just did that in 3.2 and it worked great. We'll try it in 3.3 as well shortly. Thanks!

 

Regards,

chris

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.