All Questions

1041
votes
26answers
620387 views

How to control web page caching, across all browsers?

Our investigations have shown us that not all browsers respect the http cache directives in a uniform manner. For security reasons we do not want certain pages in our application to be cached, ever, ...
786
votes
42answers
280055 views

How to force browser to reload cached CSS/JS files?

I have noticed that some browsers (in particular, Firefox and Opera) are very zealous in using cached copies of .css and .js files, even between browser sessions. This leads to a problem when you upda...
361
votes
6answers
551875 views

Using <meta> tags to turn off caching in all browsers?

I read that when you don't have access to the web server's headers you can turn off the cache using: <meta http-equiv="Cache-Control" content="no-store" /> But I also read that this doesn't w...
199
votes
11answers
193875 views

How to Empty Caches and Clean All Targets Xcode 4

Jonathan suggest here: Xcode Includes .xib files that have been deleted! that cleaning all targets and empty the caches will fix the problem with Xcode including deleted .xib files but i cannot find a...
1279
votes
27answers
527959 views

Disabling Chrome cache for website development

I am modifying a site's appearance (CSS modifications) but can't see the result on Chrome because of annoying persistent cache. I tried Shift+refresh but it doesn't work. How can I disable the cache ...
451
votes
9answers
316728 views

Read whole ASCII file into C++ std::string

I need to read a whole file into memory and place it in a C++ std::string. If I were to read it into a char[], the answer would be very simple: std::ifstream t; int length; t.open("file.txt"); ...
193
votes
7answers
118854 views

Disable browser cache for entire ASP.NET website

I am looking for a method to disable the browser cache for an entire ASP.NET MVC Website I found the following method: Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache); Response.C...
223
votes
14answers
150174 views

Stop jQuery .load response from being cached

I have the following code making a GET request on a URL: $('#searchButton').click(function() { $('#inquiry').load('/portal/?f=searchBilling&pid=' + $('#query').val()); }); But t...
571
votes
9answers
91546 views

What is "cache-friendly" code?

Could someone possibly give an example of "cache unfriendly code" and the "cache friendly" version of that code? How can I make sure I write cache-efficient code?
85
votes
11answers
53937 views

Cache busting via params

We want to cache bust on production deploys, but not waste a bunch of time off the bat figuring out a system for doing so. My thought was to apply a param to the end of css and js files with the curr...

Previous Next