What headers used in request by google bot? Must be user agent, but what else? I'm interested in cache control headers, does bot try to get fresh page, but not from cache?
The related question: Do browsers send different HTTP headers on page reload so that server side caches can be flushed?
I'm using server cache, what have option to refresh on Ctrl+F5, but don't want bot to refresh page. Code what detect Ctrl+F5 below:
function cacheHitDisplay($params)
if ($_SERVER['HTTP_CACHE_CONTROL'] == 'no-cache') {
// process/refresh page. ctrl-f5 pressed
return 0;
}
getFromCache($params);
exit 0
}
cacheHitDisplay(); // will show cached page and exit script
...here normal page processing, saving page to cache at end...