Questions tagged [cache]

A cache is a local copy of a file that exists elsewhere. Caching can take place in the browser, on a dedicated machine on a network, or at an ISP.

291 questions
8
votes
3 answers

Why don't browsers respect cache headers for initial page request?

I'm scratching my head a bit on this. A Drupal site I run is setting appropriate cache headers that should indicate that the page can be cached for 15 minutes. However, every time I hit the page it always sends a GET request instead of loading the…
Brian
  • 194
  • 6
7
votes
4 answers

How to force users to see new site instead of the cached version?

We've just launched a new website. This was a complete redesign, including a change from a static HTML website, hosted on Server A, to a WordPress site hosted on Server B. (the relevance of that is server caching) I've sent the new website to…
sam
  • 4,627
  • 5
  • 37
  • 66
6
votes
2 answers

How can I cause a browser to download a new copy of a web page when it thinks that its cached copy is still valid?

Sometimes when I make small changes to a website, I notice that certain browsers are very stubborn about downloading the page again. Both F5 and CTRL-R are worthless and the only way to fix it is to go through the options and manually tell it to…
dmsnell
  • 557
  • 3
  • 6
6
votes
5 answers

how should cache control be set in the requests

I know that Cache-Control headers can be set on the pages coming out from the web-server (as part of the response). Does anyone know how Cache-Control header should be set on the request? Should it be done via client-side scripting? If yes, how?
Pradeep
  • 61
  • 1
  • 1
  • 2
5
votes
3 answers

How can I make a "backup" that can serve static pages if the main site goes down?

We've got one server running our company's website. Unfortunately, it sometimes experiences problems. Is there a way to set up another server to serve the static websites, in case the original server doesn't respond to pings?
Anna
  • 51
  • 1
5
votes
2 answers

My old webhost has gone out of business. How can I recover the text of my website?

I found my website in the Wayback Machine a few months ago. My old webhost stopped paying for their servers back in August without any notice. I was going to do a backup the day it happened. Is there a way just to find the text of my website? I have…
Jessica
  • 51
  • 1
3
votes
1 answer

Index of Content on a Defunct Website/Blog

Is there a way to find the content on a defunct website or blog? How do you find the content that was on a website from two or three years back? Google cache doesn't appear to hold information from that long ago. I've used Wayback machine, but the…
Melanie Shebel
  • 1,840
  • 1
  • 15
  • 32
3
votes
1 answer

Reliability of using query strings to refresh cache

I have seen a number of articles suggesting the use of a query string to force refresh of a cached file. For example, style.css becomes style.css?ver=134, and you update the "version number" whenever you change the file. Are there any potential…
CaptainCodeman
  • 558
  • 1
  • 6
  • 12
2
votes
1 answer

Where are cached files stored by the W3 total cache plugin?

I am planning to use caching for my website (W3 total cache plugin) and I was wondering whether the cached files will be save on visitors personal computers or not? I know that browsers also use caching, that files are saved on the personal…
2
votes
2 answers

Is there any way to invalidate all memcache entries that begin with "User*"?

I recently made a change to my User class (which is memcached); is there any way I can invalidate all entries whose key begins with User without invalidating the entire cache? If not are there any workarounds? I would rather not delete everything.
Andreas Bonini
  • 2,585
  • 24
  • 23
2
votes
3 answers

Why is my website cached so aggressively?

Whenever I update my website by uploading a new index.html or index.php, it always takes a long time (e.g. hours or days) for that change to propagate to my browser. Even when I hit F5, I still get the old page loaded (quite fast too), so I'm…
CaptainCodeman
  • 558
  • 1
  • 6
  • 12
1
vote
1 answer

Another way to force non-caching

This is the HTTP header I typically use to ensure that an image is not cached. And the reason why I do this to a select few images is because I have an image application integrated in my site and caching the images would make the application…
Mike -- No longer here
  • 13,610
  • 4
  • 28
  • 60
1
vote
0 answers

Is there any way to get diagrams from google cache?

I would like to know if I could get diagrams from this cached web page.I tried downloading the original file(.ppt) of the cached version but it doesn't open.While I look at the cached page I can only see text but no diagrams. Is there any way to…
justin
  • 111
  • 2
1
vote
1 answer

Minify not caching according to pagespeed insights

I started using https://code.google.com/p/minify/ on my site to decrease the amount of http requests. But google's PageSpeed insights tool is telling me that the new reference link isn't being cached. A example of one of the new links that Minify…
Crecket
  • 113
  • 4
1
vote
1 answer

How do I prevent cached pages from showing up to returning visitors after doing a website update?

After making an update to my site's pages, I don't want the cached version of the old page to show up to returning visitors. Is there a way to do this from my side, without the user having to do a hard refresh or deleting their cookies?
Vikram
  • 139
  • 8
1
2