Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / browser

Disable Page Caching in Firefox

4.33/5 (3 votes)
11 Nov 2014CPOL 20K  
How to disable page caching in Firefox

Introduction

When you work in a project where static files caching is enabled, sometimes you can face a problem with this page caching. I was working in a django project where static files are cached. So whenever I do one line modification in my static files, those changes will not be reflected in my Firefox browser. It's because browser is collecting those files from cache. Ideally, it should fetch it again if there are some changes in any static file.

So to deal with this problem, I disabled page caching in Firefox.

Steps to Disable Page Caching

Step 1: Type about:config in your browsers address bar.

Step 2: It will redirect you to one confirmation page press "I will be careful" button.

Step 3: List of preference name will be shown to you with its value.

Step 4: Type "browser.cache.disk.enable" in your search box to search this preference.

Step 5: Its value will be True by default. Make it False by double clicking on line item.

Step 6: Restart Firefox.

Step 7: Repeat steps 1-6 for preference "browser.cache.memory.enable".

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)