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

Image caching with Javascript - ajax reloads them

I've got some AJAX set at an interval to check the server for notifications, etc. Problem is the browser is not caching the images like I thought it would. Every 2.5 seconds the interval is run and sets the innerHTML of a div from XML, including an…
I wrestled a bear once.
  • 22,983
  • 19
  • 69
  • 116
1
vote
3 answers

How to remove cache data on page reload?

I have a registration form. If a user fill out all the required fields. And when he reloads the page with out submitting form, the fields contain the values entered by the user. I want them to be empty as they were on first page load. I have given…
Hassan Sardar
  • 4,413
  • 17
  • 56
  • 92
1
vote
1 answer

How to fingerprint urls of CSS images with SquishIT

We use SquishIt for our CSS and JS and it works really well for cache invalidation. Whenever we change our CSS or JS, a new URL is generated which forces the browser to load the updated files. However, assets such as background images have their…
Eddy Kavanagh
  • 254
  • 2
  • 15
1
vote
1 answer

Cache control by htaccess with condition

I have cache control set by htaccess for all images by this ExpiresActive On ExpiresDefault A600 ExpiresByType image/gif A604800 ExpiresByType image/png A604800 ExpiresByType image/jpeg A604800 It works great,…
Arxeiss
  • 976
  • 16
  • 34
1
vote
1 answer

cache a part of web page using browser caching

I'm using yii framework in my web app. I have huge size website Main Navigation Menu. It's a separate file named as Menu.html. After some parsing using php it is rendered on the browser. So the structure is something…
Ashu S
  • 21
  • 3
1
vote
1 answer

Does chrome caches resources inside css file?

I am trying to do tracking pixel implementation where tracking pixel is being loaded from css, not js - body:after { background-image: url(url-to-tracking-pixel); }. While it works correctly in all other browsers, chrome keeps caching that tracking…
Osvaldas
  • 11
  • 1
1
vote
2 answers

ASP.NET MVC 2 RC Caching Problem

Since upgrading from mvc 2 beta 2 to rc I'm having trouble with an ajax submission in Internet Explorer. Upon carrying out a jquery form post, the function returns a url to a controller action. This worked fine with the controller action picking…
Steve C
  • 95
  • 1
  • 7
1
vote
2 answers

HTML 5 Application Cache DON'T cache file manifest command in?

Ok here is my manifest file below. CACHE MANIFEST #r3 NETWORK: * CACHE: /js/jquery.maskedinput.js /js/less-1.5.0.min.js /css/styles.less /css/images/ui-bg_inset-hard_100_fcfdfd_1x100.png /css/images/ui-bg_glass_45_0078ae_1x400.png…
Joseph Astrahan
  • 8,659
  • 12
  • 83
  • 154
1
vote
3 answers

Chrome 31 does not call FB.getLoginStatus on back button click

I am using facebook's javascript SDK in one of my web app. 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…
rajesh
  • 2,354
  • 1
  • 12
  • 15
1
vote
1 answer

Leverage browser caching of static assets (nginx)

I am using a VPS which runs nginx+php-fpm. My blog is based on laravel.I am trying to optimize my site to pass webpagetests. I got "C-(72/100)" from Cache static content test. I configured my nginx cache : # Set header expirations on per-project…
ytsejam
  • 3,291
  • 7
  • 39
  • 69
1
vote
1 answer

Performance impact of 200 response

I'm using $.get to preload Mustache templates, which are stored as html files on the server: $.get('/templates/template1.html'); $.get('/templates/template2.html'); When I need to render HTML using a template, I use $.get again to retrieve the HTML…
Fijjit
  • 1,399
  • 2
  • 17
  • 31
1
vote
1 answer

How to get a File via a Servlet, avoiding unnecessary GETs?

I had some files in my webapp in a simple folder in the WAR file. The requests were very fast: as soon as the browser cached a file, it did not request the file contents again until the file changed. Now I put the files in a different location, and…
Christoph Walesch
  • 2,337
  • 2
  • 32
  • 44
1
vote
1 answer

Browser caching after deploy

I have this caching commands on my server: # BEGIN Expire headers ExpiresActive On ExpiresDefault "access plus 2 days" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1…
Wolf87
  • 540
  • 3
  • 11
  • 29
1
vote
0 answers

Removing a specific item from the cache

Is this possible? Scenario: I have a multi-part form where each part other than the first starts off hidden, then gets displayed one by one upon completion of the last. Each form has its own error messages that are shown upon failure. A form's post…
idlackage
  • 2,715
  • 8
  • 31
  • 52
1
vote
0 answers

How do I get element images to be cached in Blackberry 10 Webworks app?

Is there some configuration setting I need to use to get Webworks (on BB10) to cache images served from a server? I have a BB10 Webworks application that dynamically adds and remove html from the DOM. Images referenced in elements load as…