4 ms·
Definitely block prefetch on your site, it completely screws up stats to save the user 100ms of load time. in .htaccess RewriteCond %{X-moz} ^prefetch Rew
by ck2 16y ago
Definitely block prefetch on your site, it completely screws up stats to save the user 100ms of load time.
in .htaccess
RewriteCond %{X-moz} ^prefetch
RewriteRule ^.* - [F]
- mseebach 16y agoWhen did we decide that getting accurate serverside log-analysis is definitely more important than saving 100ms of load time?
- smiler 16y agoFor people who want an accurate representation of the number of people visiting their sites and the marketeers who would very much like correct data too?
- acdha 16y agoWouldn't it be better to exclude those requests from your stats rather than punishing your users for your choice of log analysis software?
- ck2 16y agoWhile your idea is good and Apache has the CustomLog directive which could do it, the process is much more complex because of typically customized logging directories (especially where there's more than one client per host).