Click here to Skip to main content
15,895,084 members
Articles / Browser
Tip/Trick

Disable Page Caching in Firefox

Rate me:
Please Sign up or sign in to vote.
4.33/5 (3 votes)
11 Nov 2014CPOL 19.5K   3   4
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)


Written By
Software Developer
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionQuestion about your posting Pin
Carsten V2.011-Nov-14 7:29
Carsten V2.011-Nov-14 7:29 
Hello binit.ku.singh, Wink | ;)

In earlier days we used for HTML < 5:
HTML
<meta http-equiv="Pragma" content="no-cache">


And HTML5 also introduced an interesting feature.
First we need to enable the cache manifest:
HTML
<!DOCTYPE html>
<html manifest="cache.manifest">

And afterwards we need to create a file called cache.manifest with this content:
CACHE MANIFEST

CACHE

#nothing will be cached since nothing is set in this section.

NETWORK
*

#each resource is only available online - it will be loaded new...


Isn't this more comfortable instead of modifying the standard settings of Firefox?

Or did you encounter difficulties with Firefox using this new method?
Or haven't you heard about it before? Wink | ;)

In my opinion it is the better way because sometimes it may be useful to have the caching in the browser enabled.
Nevertheless that's a matter of opinion and your way is okay, too!

My 5+
AnswerRe: Question about your posting Pin
binit.ku.singh12-Nov-14 1:43
binit.ku.singh12-Nov-14 1:43 
GeneralRe: Question about your posting Pin
Carsten V2.012-Nov-14 3:35
Carsten V2.012-Nov-14 3:35 
GeneralRe: Question about your posting Pin
binit.ku.singh12-Nov-14 3:48
binit.ku.singh12-Nov-14 3:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.