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
2 answers

Caching text/image assets in performance-constrained environments

I'm working on an extremely performance-constrained devices. Because of the overhead of AJAX requests, I intend to aggressively cache text and image assets in the browser, but I need to configure the cache size per-device to as low as 1MB of text…
1
vote
0 answers

How to display large amount of data (~8Mb) on a web browser at once?

I have to display around 8Mb of data on a web browser. Unfortunately I am not allowed to use pagination. Currently my chrome, FF, IE hang while rendering this huge data. Is there any way to tweak the browser or domain storage or cache settings to…
dogfish
  • 2,646
  • 4
  • 21
  • 37
1
vote
0 answers

How to delete HTML5 cache from UIWebView?

I have a web page hosted with following tag to allow HTML5 cache. And the res shows a png image with some text. But after deleting ApplicationCache.db, after deleting cookies, after clearing NSURLCache,…
Sukitha Udugamasooriya
  • 2,268
  • 1
  • 35
  • 56
1
vote
0 answers

Express.js Node Framework - Not caching

My Node.js app uses Express and my app has a route that sends a JSON file with Tweet data. I want it to cache for 20 seconds. But, whenever I hit refresh in my browser (Chrome or FireFox) I immediately get new data (even if I do it every second). …
Justin Elkow
  • 2,833
  • 6
  • 28
  • 60
1
vote
2 answers

Clear browser cache after navigation form page

I have a multisite setup, where each site loads it's data via ajax. Everything is working perfect expect one detail. If I press the back button the ajax data is loaded from the browser cache an not from the server. This is problematic, since the…
Stefan
  • 14,826
  • 17
  • 80
  • 143
1
vote
1 answer

regular expression to negate a string nocache not working

I am trying to build a regular expression in apache which match with all files with extensions as .html, .css, .js, .jpg, etc... except it the url has the word "nocache" I have read other entries in stackoverflow, and I've create the following…
1
vote
1 answer

Delete cache files and free allocated memory for it programmatically

I am building an app for SmartTV which is mainly (JavaScript & HTML5). The application is very slow due to the RAM size on the TV and the processor speed. I am working currently to solve this issue. I have decided to delete the cache file whenever a…
1
vote
1 answer

javascript not loading in firefox alone

I have added a piece of javascript code and it is not getting reflected in some of my peer's machine. Don't know whats going wrong. This is what I did. OnClick of a button, there was an existing JS function and I added an overlay feature inside the…
Raja Asthana
  • 2,080
  • 2
  • 19
  • 35
1
vote
2 answers

How to control CSS cache?

I asked a question on what is style.css?ver=1 tag?. I learned that developers use style.css?ver=1 to let browsers read updated css, but W.Craig Trader pointed out that is is not good. My question is, what is the best way to force a browser to read…
Moon
  • 22,195
  • 68
  • 188
  • 269
1
vote
1 answer

how to reload web page on click back button of browser in asp.net

I have problem regarding back button of browser. Click of back button I want to reload my web page but it doesn't post-back that's why I am not able to refresh page. I have used following code to clean cache but it shows me your page expired but I…
Trupti
  • 21
  • 1
  • 5
1
vote
1 answer

Best way of dealing with cached js files when iterating rapidly

My application is growing, changing, and deploying to our alpha users several at least once a day. This leads to a problem as users' browsers caches doesn't expire rapidly enough for them to get the latest script versions. What are some good ways of…
George Mauer
  • 117,483
  • 131
  • 382
  • 612
1
vote
2 answers

Detect if an image is cached

To know if an image is in the cache, you can use in Firefox mozIsLocallyAvailable(). There is no such things from chrome or IE. Do you know any other ways ? I tried to check for "304 not modified" with Ajax, but Ajax seems to have its own cache…
JiDW
  • 51
  • 5
1
vote
0 answers

How do web browsers cache webpages?

First question Do web browsers cache webpages I visited by default? Second question If the web browsers cache all the webpage I visited, gradually they will consume more and more space (disk and memory). Is there any space limits used by the web…
JackWM
  • 10,085
  • 22
  • 65
  • 92
1
vote
3 answers

Restore js file with chrome cache

I accidentally deleted a HTML file with dreamweaver. I really would like to get this file back, my backup was not ok. So I would like to retrieve the file using the cache of my browser Chrome. I Googled and found this: LINK But it doesnt work for…
Youss
  • 4,196
  • 12
  • 55
  • 109
1
vote
1 answer

RequireJS Caching

We are having some trouble with RequireJS not grabbing a fresh copy each time it is requested. We have used the following without success: require.config({ urlArgs: "bust=" + (new Date()).getTime() }); When viewing the network log, the page is…
Ryan
  • 143
  • 1
  • 2
  • 7