I was trying to do some SEO improvements on my website and accidentally set the Expires
header to -1
.
I changed it back after a couple of days.
Would the Expires: -1
header be the cause of why my number of visitors has dropped from a daily average of about 3800 to 1300, quite a drastic cut. What's a best value to put for Expires
or should I leave that well alone? I've noticed a competitor does a month and so did the same now.
Will Google revisit my Expires: -1
pages eventually or will they be forever be ignored by Googlebot? I guess that might be a guess.
HTTP/1.1 200 OK
Cache-Control: no-cache, max-age=0, no-cache, no-store, must-revalidate
Content-Encoding: gzip
Content-Type: text/html
Date: Thu, 21 Apr 2016 18:02:06 GMT
Expires: -1
The following resulted in the Expires
header being set:
Response.Cache.SetCacheability(HttpCacheability.NoCache);
I also updated all the images, made them smaller in size by compressing them using ImageMagick so that they got a good "rating" with webpagetest.org
. Would that have also caused a significant drop.
Expired
header. Do you meanExpires
? But then-1
is not a valid value for theExpires
header, so it's possible asp.net is processing this to set a valid value? Are you setting this header on the main page or only on external resources?