Questions tagged [browser-cache]

Browser caches are an instance of the optimization mechanism known as a cache.

Browser caches are an instance of the optimization mechanism known as a cache.

The browser cache is nothing more than a place on your hard disk where the browser keeps things that it downloaded in case they're needed again.

For example, the first time you visit a web page, the browser will download some files like the logo image or icon images, so that it can be shown.

Since it's faster to get something to display from your hard disk than it is to get it from the internet, every time thereafter when you visit the same web page or any page on that domain, the browser will be searching for the required images and other files on its cache folder. Only if not found it goes to the internet to download them.

2884 questions
53
votes
9 answers

Are there Firefox keyboard shortcuts to clear the cache?

With the Firefox web developer toolbar I can select "Miscellaneous → Clear private data → Cache". Is there a way to do the same with a keyboard shortcut? Edit: I am also using vimperator to drive Firefox with the keyboard; just found out that it's…
sotto
  • 2,044
  • 4
  • 18
  • 22
52
votes
3 answers

How to prevent browser from caching form fields?

I have a textbox in a form field that gets populated by the user. However currently (in Firefox 10) the user can navigate away from the page, then come back, and the input will be populated with its previous value. I think this creates for a…
Igor
  • 33,276
  • 14
  • 79
  • 112
50
votes
4 answers

How to disable cache in Windows 10 on the Edge browser?

How to disable or delete browser cache in Windows 10 on the Edge browser? There are no options on preferences and developer tools (F12)
sayingu
  • 2,261
  • 3
  • 19
  • 26
50
votes
2 answers

Determining a page is outdated on github pages

Github pages sets very aggressive cache headers (Cache-Control: max-age=86400 1 day, Expires 1 month ahead) on all served content. If you update your pages and push to github, people revisiting the pages who have already got cached copies will not…
Will
  • 73,905
  • 40
  • 169
  • 246
48
votes
7 answers

How do I 'leverage browser caching' for Google fonts?

I tested my site via Pingdom and got this: I searched but couldn't find a solution to this. Does anyone know how I can get this 14 to 100?
J82
  • 8,267
  • 23
  • 58
  • 87
45
votes
10 answers

how to force clearing cache in chrome when release new Vue app version

I created an app with vue-cli and then I build the dist folder for production. The app is deployed on IIS with flask backend and works fine. The problem occurs when I have to make some changes and I have to redo the deployment. After this, users…
nickb84
  • 591
  • 2
  • 6
  • 11
45
votes
2 answers

What is the difference between local storage and cache in the browser?

When we open application segment in the developer console of chrome, we see many things like: Application Manifest service Workers Storage local storage session storage indexed db Web sql Cookies Cache Cache Storage Application Cache I…
44
votes
6 answers

How long is a 302 redirect saved in browser?

Due to a misconfiguration of our webserver the main domain sent a 302 redirect to a new location. We fixed that issue. When emptying the browser cache everything works fine now. For the "normal" client who does not empty his cache: How long is the…
Ole Albers
  • 8,715
  • 10
  • 73
  • 166
43
votes
2 answers

Make IE cache the resources but always revalidate

The cache control header "no-cache, must-revalidate, private" allows browsers to cache the resource but forces a revalidate with conditional requests. This works as expected in FF, Safari, and Chrome. However, IE7+8 does not send a conditional…
alienhard
  • 14,376
  • 9
  • 37
  • 28
43
votes
6 answers

How to use Cache-Busting with Webpack?

Before Webpack I would always rely on the following pattern for "cache-busting": This all works great pre & post packaging, but I run into…
Jesse
  • 10,370
  • 10
  • 62
  • 81
41
votes
9 answers

Form/JavaScript not working on IE 11 with error DOM7011

The register button for our ASP.net form, which uses the __postback function stopped working on IE 11, from the developer console, it shows: DOM7011: The code on this page disabled back and forward caching. For more information, see:…
38
votes
11 answers

Force CKEDITOR to refresh config

I created a cms application that use CKEDITOR and when I add some functionality to CKEDITOR I need to refresh some CKEDITOR .js /.css file. But CKEDITOR force the browser to cache them. I see that it uses a querystring to all .js/.css files This…
giammin
  • 18,620
  • 8
  • 71
  • 89
37
votes
4 answers

How to disable webpage caching in ExpressJS + NodeJS?

By default, my browser caches webpages of my ExpressJS app. This is causing a problem to my login system (users not logged in can open old cached pages of logged in users). How do I disable this caching? EDIT: My app.js (main file): var express =…
batman
  • 5,022
  • 11
  • 52
  • 82
36
votes
4 answers

Can I force .htaccess to refresh?

We are moving a site from one CMS to another. The .htaccess file has been changed and it needs to be refreshed for the new site to work right. From what I understand the .htaccess file will only be refreshed if the browser cache is cleared? It is…
Johann Dyck
  • 613
  • 1
  • 6
  • 13