No cache and Google AdSense performance
Posted
by
Luca
on Pro Webmasters
See other posts from Pro Webmasters
or by Luca
Published on 2013-11-04T14:33:12Z
Indexed on
2013/11/04
16:12 UTC
Read the original article
Hit count: 363
I'm developing a page where I need to avoid JavaScript caching by browser. I've added this header:
<?php
header('Cache-Control: no-cache, no-store, must-revalidate');
header('Pragma: no-cache');
header('Expires: 0');
?>
After this, browsers didn't cache more JavaScript sorting out the issue, but in the same time I noticed a drop in Google AdSense RPM.
Then I removed the added code and now Google AdSense RPM is reaching again a good value.
So, how could I avoid JavaScript caching without meddle with AdSense performance?
© Pro Webmasters or respective owner