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.

learn more… | top users | synonyms

23
votes
4answers
57k 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?
3
votes
2answers
2k 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 ...
234
votes
42answers
27k 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 ...
2
votes
1answer
154 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
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 ...
18
votes
2answers
29k 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 ...
10
votes
2answers
256 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 ...
8
votes
3answers
236 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
2k 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 ...
4
votes
1answer
5k 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 ...
3
votes
2answers
936 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 ...
1
vote
1answer
745 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
2answers
191 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 ...
1
vote
0answers
72 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
2answers
101 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 ...
0
votes
0answers
76 views

NGinx Downloading instead of Serving

I have nginx setup on my ubuntu server as the web server with 3 config files (minus the site configs) All of my sites now download a application/octet-stream file rather than serving up the pages. ...
0
votes
0answers
527 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 ...