Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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"
  </ifModule>
</filesMatch>

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

share|improve this question

1 Answer 1

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

 
discard

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.