All Questions

1326
votes
28answers
559541 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 ...
195
votes
8answers
120775 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...
209
votes
21answers
233574 views

Prevent browser caching of jQuery AJAX call result

It looks like if I load dynamic content using $.get(), the result is cached in browser. Adding some random string in QueryString seems to solve this issue (I use new Date().toString()), but this feel...
90
votes
14answers
157289 views

How to force a web browser NOT to cache images

Background I am writing and using a very simple CGI-based (Perl) content management tool for two pro-bono websites. It provides the website administrator with HTML forms for events where they fill th...
67
votes
4answers
139872 views

How to prevent Browser cache for php site

I have a php site running in cloud server.When ever i add new files css, js or images the browser is loading the same old js, css and image files stored in cache. My site has a doctype and meta tag a...
171
votes
8answers
472542 views

How to set HTTP headers (for cache-control)?

How to enable browser caching for my site? Do I just put cache-control:public somewhere up in my header like this? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3....
106
votes
7answers
66310 views

What does appending "?v=1" to CSS and Javascript URLs in link and script tags do?

I have been looking at a HTML 5 boilerplate template (from http://html5boilerplate.com/) and noticed the use of "?v=1" in URLs when referring to CSS and Javascript files. What does appending "?v=1" ...
47
votes
8answers
72851 views

How do you cache an image in Javascript

My friends and I are working on a website where we would like to cache certain images in order to display them faster in the future. I have two main questions: How do you cache an image? How do you...
206
votes
13answers
144460 views

AngularJS disable partial caching on dev machine

I have problem with caching partials in AngularJS. In my HTML page I have: <body> <div ng-view></div> <body> where my partials are loaded. When I change HTML code in my p...
90
votes
5answers
128300 views

Make page to tell browser not to cache/preserve input values

Most browser cache form input values. So when user refreshes page, the inputs have same values. Here's my problem. When user clicks Save, server validates POSTed data (e.g. checked products), and if ...

Previous Next