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.
33
questions
13
votes
4
answers
19k
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:...
4
votes
1
answer
845
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/...
0
votes
1
answer
799
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 ...
271
votes
42
answers
53k
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 ...
40
votes
4
answers
108k
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
1
answer
372
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 ...
3
votes
1
answer
4k
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 ...
1
vote
2
answers
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/...
33
votes
6
answers
61k
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 ...
32
votes
1
answer
21k
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 ...
20
votes
1
answer
2k
views
How do I prevent Google from serving a cached version of my site? [duplicate]
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 ...
14
votes
2
answers
607
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 ...
9
votes
3
answers
347
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 ...
7
votes
2
answers
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 ...
6
votes
2
answers
8k
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 ...
5
votes
2
answers
1k
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 ...
4
votes
2
answers
4k
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
...
3
votes
1
answer
6k
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,...
3
votes
0
answers
76
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 ...
3
votes
1
answer
898
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
2
answers
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
1
answer
1k
views
When my origin serves a "304 Not Modified", Cloudflare sends "200 OK" and makes the user download the page again
I'm using Cloudflare to cache certain APIs. I'm setting the below headers in my Origin server:
Cache-Control: public, must-revalidate, max-age=300
Basically, I'm instructing the browser here to cache ...
2
votes
1
answer
1k
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:
...
1
vote
0
answers
42
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
2
answers
603
views
How ExpiresByType and Header set Cache-Control works together?
I have:
ExpiresActive On
ExpiresByType image/jpg "access 2 years"
And let's say:
<filesMatch ".(jpg|jpeg|png|gif)$">
Header set Cache-Control "max-age=31536000, ...
1
vote
2
answers
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
2
answers
939
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
1
answer
4k
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
2
answers
2k
views
Can external resources be cached for 7 days to improve my PageSpeed score?
Google Pagespeed recommends caching resources for at least a week under "Leverage browser caching". I've done it for internal files but I was wondering if something could malfunction if I did the same ...
1
vote
2
answers
155
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
0
answers
164
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
1
answer
2k
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
1
answer
433
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 ...