Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using this:

<filesMatch "\.(html|htm|js|css)$">
  FileETag None
  <ifModule mod_headers.c>
     Header unset ETag
     Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
     Header set Pragma "no-cache"
     Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"

Will this cause my site to not be indexed by Google?

share|improve this question

Doing that won't get your sited banned or not indexed by Google, but you might rank better if you optimize for caching, for example browser caching setting expires headers far in the future for static files that don't change too often; Google takes into account how fast your pages are, because they encourage optimizing website speed for better user experience.

Here is where you can read about that in Google documentation. This is another helpful resource from search engine land. And some more about expires headers, from seo moz.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.