No cache and Google AdSense performance
- by Luca
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?