Adsense + Leverage Browser Cache = Bad? I Can't Figure This Out! :(

contract

::\\\ Motivªtion ///::
Dec 28, 2011
1,920
33
0
California, USA
Trying to leverage this damn browser cache, and it works 100%.

But what happens is Adsense doesn't refresh the ads anymore, they stay the same.

After hours of reading, apparently if you cache all the JS, Adsense doesn't refresh their javascript, thus problems.

Now I'm hearing Adsense is a 3rd party service so it won't get cached? LOL, not the case.

Then I read some random G article saying to put 10^*293 numbers in the code so never gets cached? But this is really confusing.

.....

Any ideas, I'm lost. Searching everywhere and getting no legit answers. It's like no one has ever had this issue before.

I don't use cache plug-ins either, I do it straight from the server.
 


Depends on how you're caching. If you're caching the generated HTML (with the adsense ads in it) then yes, you're fucking yourself. If you're caching only your own content but still loading the javascript in remotely, it will still embed the ads properly.

Caching their JS code won't stop them from serving up ads though, the javascript not executing on page load is what would stop it.
 
Thank you! So basically cache images/javascript/css, but don't cache the html. Last time I tried this I cached everything...
 
Thank you! So basically cache images/javascript/css, but don't cache the html. Last time I tried this I cached everything...

Like I said, it really depends on how you're caching. For instance, if it's a wordpress site and you're using W3 Total Cache or similar, it won't break the way your ads work because it won't cache and minimize external JS scripts, only stuff that is served up from your own domain.

However, if you're using an external caching service, they might be caching the final rendered page which will shoot you in the foot for the ads.
 
Like I said, it really depends on how you're caching. For instance, if it's a wordpress site and you're using W3 Total Cache or similar, it won't break the way your ads work because it won't cache and minimize external JS scripts, only stuff that is served up from your own domain.

However, if you're using an external caching service, they might be caching the final rendered page which will shoot you in the foot for the ads.

Great advice thank you again Dchuk!

No plugins for Wordpress, using Apache .htcacess as the cache.. (Server also has Nginx). Trying to figure out if there's anyway to make an exception, I've seen that being done in WP total Cache, where you cache certain files only.
 
But what happens is Adsense doesn't refresh the ads anymore, they stay the same.

as dchuk said, if your pages are dishing out standard external adsense JS, it's not possible that your site is caching ads.

This could be normal behaviour if you're using a standard config browser. Google might deem it so that you should be served the same ad or there might not be enough ads that meet the criteria that you match.

Without knowing how you're testing, you might be doing this already, but try using different browsers/IP addresses, or switching up your user agent, block/clear cookies etc.