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

FB.getLoginStatus callback not get invoked on back button click in chrome

I am using facebook's js SDK. I use FB.init to initiate the fb object and FB.getLoginStatus to check user's status. Everything works fine when load the page. But when i click some link inside my page and then try to go back to my last page by…
1
vote
1 answer

Forcing a webpage to expire using Javascript

In classic ASP, I am telling the browser to cache a certain page for an hour using: response.expires = 60 This is great, as subsequent page loads for the user within the hour are instantaneous, and without queries to backend databases. The page…
dangowans
  • 2,263
  • 3
  • 25
  • 40
1
vote
1 answer

leveraging browser caching for images served through CDN

I have written this in my .htaccess file to leverage browser caching: # 480 weeks caching Header set Cache-Control "max-age=290304000, public" It is working well for files…
1
vote
0 answers

Securely Delete Browser Cache for File Inputs

I have been struggling with a browser security related question that came up recently: I want to release a mobile website that makes use of HTML5's capture=camera attribute. However it's likely that a few of these medicines would have a patient…
Adam
  • 31
  • 3
1
vote
1 answer

How to avoid the cache after user logout?

I have used this code to make Enduser can not be able to access the Application pages using browser back button after signout. If the Enduser clicks on browser back button that should need to kick back the user to ApplcationLogin page again. Here…
user3214269
  • 219
  • 2
  • 8
  • 23
1
vote
1 answer

How can my web app clear the browser cache when it loads?

In my gwt application there is some problem due to browser cache. How to clear the browser cache when loading the first page ?
lomed
  • 51
  • 7
1
vote
0 answers

how to do most effective slideshow with call=ajax

I have seen few websites doing like this. Even though the page url is changed into new url and even the content(few parts of the page) is changed the webpage doesnt get reloaded. For example consider this webiste link…
wonderwhy
  • 11
  • 1
1
vote
1 answer

Uncaught ReferenceError: check_url is not defined

I've just picked up a project that had a ton of javascript issues, and I have been able to resolve all of them except the following. When pages in this site load, I continually receive the following error in the Chrome console. "Uncaught…
MarcusTheShogun
  • 469
  • 4
  • 14
1
vote
1 answer

Force Logout on Tab / Browser Close in Laravel App - Chrome Problems

I am building a webapp in Laravel 4.1, and I wish to force logout on browser / tab close. A bit like your typical bank does... You log into your online banking, close the window, then go back to the site, you need to log back in again. I have set…
Gravy
  • 12,264
  • 26
  • 124
  • 193
1
vote
0 answers

How to handle changes in the validation in the Java Scripts in the J2EE applications

How to handle the changes in the validation in java scripts or adding additional validation in the java scripts? We need to refresh the browser cache to reload the updated java scripts. Is there any optimized way to handle the reloading…
velmurugan
  • 11
  • 3
1
vote
2 answers

Caching of the JS file by browser which made on fly in php

After 2 days of work, we got success with the minification and combine multiple js files in one file. In our framework, first we create the minified file, if not exist. and from PHP/template file we are loading same file in
KuKu
  • 646
  • 2
  • 15
  • 38
1
vote
2 answers

How to let the browser cache css and js files for a https site?

I develop an ASP.NET web application hosted in IIS 8.5 using https. I use fiddler to track the request and response, and find that css and js files are not cached by the browser (IE 11). For each page of the website, these files will be downloaded…
Bargitta
  • 2,266
  • 4
  • 22
  • 35
1
vote
1 answer

Leverage browser caching on images hosted from youtube

I tested out my page speed of my site here: http://tools.pingdom.com/fpt/#!/bFwes8/http://attorneyvidbox.com My performance grade is not bad, but could be better. I have a low score on the leverage browser caching, which I have an .htaccess file to…
Alex Kittavong
  • 193
  • 1
  • 2
  • 13
1
vote
0 answers

browser back button on ajax innerHTML

I have an application ajax-based with call like this: ----- url='/list.php?a=1&b=2' xmlhttp.open("GET", url,true); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4) { …
Beb Pratza Ballus
  • 221
  • 1
  • 5
  • 14
1
vote
0 answers

ajax, save innerHtml form ajax call for show on Back from Browser

I need to save the code from my ajax call that is: if (xmlhttp.readyState==4) { document.getElementById("return").innerHTML=xmlhttp.responseText; } for call at "Back" call from browser when I go to another page from this page. I don't want use…
Beb Pratza Ballus
  • 221
  • 1
  • 5
  • 14