Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I delete particular file from firefox cache?

I am developing an ASP.net application.

Where I have to frequently update my CSS file. I don't want to update document frequency setting in from about:config in Firefox. I want to let it default.

I use Firefox as an Ideal browser. If I just update my CSS file, I have to clear whole cache of Firefox.

I want to delete particular file from Firefox cache. Is this possible in Firefox. I can delete particular cookie in Firefox. Can't I delete particular file from Firefox cache?

If It is not possible then please tell me how can I make my CSS file in the way that it should be always checked (and only load if modified) for newer version. I do not want to change Firefox settings in any case.

like image 667
shashwat Avatar asked Apr 18 '12 13:04

shashwat


People also ask

How do I edit cache in Firefox?

To set Firefox's cache folder, first type “about:config” (omit quotes throughout) into the program's address bar and then hit “Enter.” Right-click on any of the displayed properties, select “New” and then select “String” to display the New String dialog box. Enter “browser. cache.

What happens if I delete Firefox cache?

Clearing your cache in Firefox helps speed up your browser by cleaning up unnecessary files. The Firefox cache temporarily stores parts of websites you visit to help them load faster when you visit again. But files in your cache build up quickly, slowing down your system.

Can I delete Mozilla temp files?

Mozilla FirefoxTo delete temporary internet files from Firefox, follow these steps. Click the Open menu button in the upper-right corner of the window and click Settings. Click Privacy and Security. In the Cookies and Site Data section, click Clear Data.


2 Answers

If I remember correctly, the keycombination CTRL + F5 cleats the cache and the css-files have to be reloaded.

like image 56
Tomtom Avatar answered Oct 13 '22 21:10

Tomtom


Using an ETag would be a good option. By setting the Max-Age Header in HTTP responses, you can allow the client to cache the resource for a limited time. After that time, the client will make a conditional GET request to the server. If the ETag (stored in the If-None-Match header) in the request doesn't match the ETag on the server, the modified resource will be sent down to the client. Otherwise the server responds with HTTP 304 Not Modified and the client can cache the content for a limited time again. This approach can be used for particular files or for directories.

like image 43
Eric Brenden Avatar answered Oct 13 '22 22:10

Eric Brenden