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.

2673 questions
43
votes
1 answer

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
  • 68,898
  • 35
  • 156
  • 231
43
votes
2 answers

Expire cache on require.js data-main

I'm using require.js and r.js to package my AMD modules. I'm using jquery & requirejs via the following syntax: This all works great pre & post packaging, but I run into…
Jesse
  • 9,712
  • 9
  • 60
  • 79
42
votes
2 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
  • 1,921
  • 3
  • 16
  • 24
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:…
36
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…
35
votes
8 answers

How do I cache bust imported modules in es6?

ES6 modules allows us to create a single point of entry like so: // main.js import foo from 'foo'; foo() foo.js will be stored in the browser cache. This is desirable until I push a new…
spinners
  • 2,021
  • 1
  • 17
  • 31
33
votes
13 answers

Firefox addon to remove cache and cookies of one domain?

I use Firefox to develop a web site and at the same time to browse the web, read my gmail, etc. The problem is every now and then I need to delete the cache and or remove the cookies of the web app, but I want to stayed logged in in the other web…
flybywire
  • 232,954
  • 184
  • 384
  • 491
33
votes
1 answer

How chrome browser determine memory cache and disk cache?

I knew that chrome supports from memory cache and from disk cache when I request resources. I didn't see from memory cache before. BTW how chrome determine which resource should be cached in memory?
gentlejo
  • 2,158
  • 4
  • 22
  • 30
33
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
  • 17,130
  • 6
  • 64
  • 84
32
votes
6 answers

How Can I Make Webpack Use a Cache-Busting Suffix?

Before Webpack I would always rely on the following pattern for "cache-busting":