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.

Filter by
Sorted by
Tagged with
10
votes
4answers
16k views

“404. That’s an error.” when viewing from Google cache

My site is getting 404. That’s an error. message when I click on cached from Google search results. This is the error message from Google: That’s an error. The requested URL /search?q=cache:...
266
votes
43answers
49k views

Recovering a lost website with no backup?

Unfortunately, our hosting provider experienced 100% data loss, so I've lost all content for two hosted blog websites: http://blog.stackoverflow.com http://www.codinghorror.com (Yes, yes, I ...
39
votes
4answers
104k views

How do I set expiration headers for CSS, JS, and Images?

I have recently analysed my website with pagespeed addon on firebug. It suggested me to set expiration on CSS, JS and image files. I am wondering how do i do this?
4
votes
1answer
700 views

Tradeoffs around using a query string vs embedding version number in the CSS/JS files [duplicate]

I was reading articles and forum posts about using version numbers in CSS/JS files. http://www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/ http://www.particletree.com/...
4
votes
1answer
347 views

Google PageSpeed, optimizing Google's own elements

I'm trying Google's PageSpeed online service Ironically, it's primarily highlighting Google's own services as something that needs improvement on my site 1) jQuery from Google: blocking. So I moved ...
1
vote
2answers
3k views

.htaccess and browser caching

I ran across these suggested htaccess edits. Is this a good practice? Is this something I should implement on my wordpress site?: <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/...
0
votes
1answer
485 views

Am I legally allowed to cache other people's web pages on my site?

I'm developing a small content aggregation app that frequently relies on posts from other web sites, which occasionally go down or remove the content. Would it be in breach of any legal structure if I ...
32
votes
6answers
55k views

Headers to prevent 304/If-modified-since/HEAD requests

What headers should I be sending to outright stop all requests to the server after the content has been cached? We have a very high latency server (Sigh, VMWare) so even sending a HEAD request to the ...
20
votes
1answer
2k views

How do I prevent Google from serving a cached version of my site?

From what I understand I can tell Google to remove pages from their archive if I add the header: <meta name="ROBOTS" contents="NOARCHIVE" /> But won't this also remove the page from search ...
17
votes
1answer
8k views

What happens if you don't set cache-control header?

What happens if you don't set the cache-control header? Does HTTP specify a default behaviour that clients should follow or is it up to the clients to decide? In Chrome, I have seen some Javascript ...
14
votes
2answers
470 views

Control over the Internet Archive besides just “Disallow /”?

Are there any mechanisms to control what the Internet Archive archives on a site? I know to disallow all pages I could add: User-agent: ia_archiver Disallow: / Can I tell the bot that I want them to ...
3
votes
1answer
3k views

Google no longer showing link to cached result in SERP result

I was looking today to see which version of a page Google had crawled and cached, but when I looked, I could no longer see the place where Google shows the cached content. Is this a feature that ...
7
votes
2answers
10k views

Cache external static scripts?

In my never ending quest for a faster website, I thought perhaps I could cache some scripts. I'm using Yslow to rate my site, everything is pretty much A (which is great, our website on Pingdom loads ...
5
votes
2answers
144 views

Do browsers send different HTTP headers on page reload so that server side caches can be flushed?

I'm implementing caching at the server application level, because my hosting doesn't provide Apache caching modules and it's not possible to use a reverse proxy there. Its cheap and fast hosting, so I ...
3
votes
2answers
3k views

How can I make redirections cacheable to speed up load times?

Google PageSpeed says this: Avoid landing page redirects To speed up page load times for visitors of your site, remove as many landing page redirections as possible, and make any required ...
2
votes
1answer
944 views

.htaccess file not caching

I have read several guides for how to write the htaccess file for caching but with no success. I asume I wrote something wrong and need some help on finding what i did wrong. Here's my htaccess file: ...
9
votes
3answers
312 views

Is it worth it to change my entire user images file structure to take advantage of simple browser caching?

On one of my mobile sites, I simply store my user's profile images as '1.jpg' in their user folder, and incrementally go from there for any extra pics they upload. This means that whenever they change ...
6
votes
2answers
6k views

Apache: How can I force the browser to reload CSS files?

How to force the user's web browser to reload CSS files with Apache Server? I updated my website's CSS file but some users are still seeing problems that would be resolved if their browsers fetched ...
3
votes
1answer
800 views

Is there a way to make Alexa's ia_archiver slow down its crawling of my website?

Alexa's ia_archiver bot is the main contributor to the Internet Archive's "Wayback Machine" web collection, and there are advantages to having my website included in that collection. There are other ...
3
votes
2answers
2k views

Find old web content via Google cache or similar

I have a bit of a problem. My client is running a Joomla 1.0 site and some content (text) was lost. There was no backup configured of the MySQL database. The content was lost approx. around the 16:th ...
2
votes
0answers
29 views

Google Search Console reports mobile friendly errors after enabling WordPress caching plugin

I tried to test my site in the google webmaster, I got Mobile usability issue But when I exclude the Googlebot in my cache plugin it's working properly! The speed is important so I am trying to send ...
2
votes
1answer
3k views

Force visitors to get newest versions of resources (bypassing browser cache)

How can I (force) my visitors on my website to clean their cache, and get the new updated content? I find myself sometimes linking progress on some of my projects and sending it to others for feedback,...
1
vote
0answers
39 views

Google cache is not showing up for a page despite trying twice to use the fetch and render tool [duplicate]

I did Fetch and Render twice on a particular page but the cached version of the page is still not showing up on Google. I did a Fetch and Render on other posts on the site and they all showed cached ...
1
vote
2answers
3k views

What response headers encourage 304-Not Modified upon reloads?

When looking at the network waterfall in Firebug/Chrome/IE9, I keep seeing "200-OK" instead of "304-Not Modified" for many cache-able files (images, js, css) on this page, for example. I believe it ...
1
vote
0answers
155 views

What is the best way to invalidate an entire Amazon CloudFront cache or recreate the entire distribution?

After asking this question, I have decided to recreate some CloudFront distributions, as so many files need to be invalidated. But instead of creating a new distribution, is it possible to just ...
1
vote
1answer
138 views

404 on google cached version pages [duplicate]

When I am searching my website on Google cache version is showing 404 errors. I tested same for some other competitors also and the same problem is there. Reviewed on Google Search Console, all good ...
1
vote
2answers
799 views

I'm receiving an “Account Suspended Page” when trying to accessing my VPS

I have a VPS account and host a handful of sites. Two of these sites I cannot view from specific computers. When I open the sites I get the account suspended page. See screenshot below. Here is what ...
1
vote
2answers
141 views

How to compel the browser to get the webpages from a server not from a local cache even if a particular page is frequently requested?

I have been testing a web site but every time I complain to the web developer that I am not able to see on the website which you have recently corrected,he told me that I am seeing that content from ...
1
vote
1answer
3k views

Can .htaccess be used to cache AdSense JavaScript to improve the pagespeed score?

I'm AdSense publisher and I need to improve the page speed score for my site. It already gets 90/100 for speed and 100/100 for User Experience, however Google AdSense code is preventing it from ...
1
vote
1answer
1k views

Would changing the expiry header for `analytics.js` from Google Analytics mess things up?

I'm using GTMetrix to help figure ways to speed up my page load times. One of the suggestions is to Leverage Browser Caching, which indicates wanting resources to expire 1 week or longer. One of the ...
0
votes
1answer
339 views

what would cause incorect titles to be listed in google?

I did a search for my site and it turns out that google showed an entry with an incorrect title, yet the description is ok. The title was incorrect to the point where it was called "the album" with ...