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
1
vote
1 answer

How to invalidate HTTP Cache Headers on static files

I have set a CacheControl declaration in my .htaccess for browsers to cache static files. Upon successive deployments, how can I define an instruction to invalidate the client's cache? Header add "Cache-Control"…
Atticus
  • 6,585
  • 10
  • 35
  • 57
1
vote
0 answers

How to do versioning for JSF 2 resources?

When you have multiple resources (js, css, images) it's a great performance boost to set the caching policy in production environment, so that the browser won't ask each time if new version of resource is available. The issue is, when you update the…
Danubian Sailor
  • 1
  • 38
  • 145
  • 223
1
vote
1 answer

Control Browser Caching of Generated JavaScript

Background An MVC 4 application needs to include JavaScript that is generated from the database. The generated file is relatively large, and changes only occasionally (changes every 2-10 days). The accepted answer of Generate javascript file on the…
Eric J.
  • 147,927
  • 63
  • 340
  • 553
1
vote
1 answer

Android Offline and online Apps using cache & Phonegap

my experience with cache in Android using Phonegap . 1. I want to create one app which should work online as well as offline. 2. If internet connectivity is there it should use otherwise use the history. Now it working with the online ..but…
sherin
  • 1,091
  • 2
  • 17
  • 27
1
vote
1 answer

iOS broswer data -> Cache & Cookie for Phonegap App / Session?

I am producing a phonegap app which is half native and half web based. When a user is required to upload data to the server, the webView (or atleast i belive this is what its called) loads an external webpage... Now here is the catch. When I load…
Henry Aspden
  • 382
  • 2
  • 5
  • 15
1
vote
2 answers

Items in DOM not clearing, how to clear cache

I have a site where items are loaded onto a page in the DOM as I'm using a masonry type effect. Now, users can delete these items at any time, many at once if they choose to. The problem is, after deleting, I refresh the page showing the items by…
StudioTime
  • 22,603
  • 38
  • 120
  • 207
1
vote
1 answer

How to clear saved password or formdata from iOS app

App uses UIWebView, and what are the caching areas to lookout and clear when user logs out. Cache.db ApplicationCache.db (if applicable) HTML5 databases Cookies 1 . Anything else to look for? 2 . How to clear saved password or formdata ?
Sukitha Udugamasooriya
  • 2,268
  • 1
  • 35
  • 56
1
vote
1 answer

A web page cache confuse in node.js

I use passport.js in my node program, for authorization control, suppose I have two page in different authorization //need authorization app.get('/admin', checkaccess, function (req, res) { }) //doesn't need authorization app.get('/blog', function…
hh54188
  • 14,887
  • 32
  • 113
  • 184
1
vote
0 answers

Does Java Web Start caches resources or ever uses If-Modified-Since?

A browser can cache resources such as a picture, and sends header with If-Modified-Since so a servlet can check and return 304 if it's not modified. So what about Java Web Start? Does it ever do this? I checked that my java web start doesn't have…
Hai Bi
  • 1,173
  • 1
  • 11
  • 21
1
vote
1 answer

how to cache the javascript file

Hello I am trying make a browser cache experiment. like this
Marsen Lin
  • 198
  • 1
  • 1
  • 15
1
vote
1 answer

Can I use filemtime('style.css') in PHP to force a browser to reload a css?

Can I use filemtime in PHP to force a browser to reload a css? $mtime = filemtime('style.css'); echo "\style.css?mod=" . $mtime; Is filemtime too slow?
chrvadala
  • 582
  • 6
  • 17
1
vote
0 answers

Pragma: no-cache in server response is affecting the behaviour of browser history in HTTPS

Ok, so I get the rule that browsers should not confuse history store and web cache: Clicking back should not send a request to the server. I also get that browsers manufacturers have the poetic licence to break this rule. What I don't get is the…
ianbeks
  • 2,198
  • 1
  • 23
  • 26
1
vote
0 answers

Application Cache Error

I've got this error: Application Cache Error event: Manifest fetch failed (-1) http://localhost:8080/offline.manifest online: NO, event: error, status: idle This JSON String show the content of the…
1
vote
1 answer

How to force a browser to download page content resources?

Too frequently I see issues where customers/clients have to refresh the webpage, typically after clearing their history/cache, only to find out that the webpage is perfectly fine. Is there any way to add a version or just force the browser to…
AlvinfromDiaspar
  • 6,611
  • 13
  • 75
  • 140
1
vote
1 answer

What are common methods to version javascript for maximum, cached performance?

We are hosting a PHP application with multiple javascript files. Currently we bust the cache by appending a get parameter (timestamp) to the url of the javascript files, ie: http://ourserver.com/scripts/something.js?cachebust=1289438903 As the…
Sean
  • 537
  • 1
  • 6
  • 15
1 2 3
99
100