I am working on code for my .htaccess file to cache and speed up my site.
I have found a number of code examples out there, done different ways - but I am unsure on the best way to do javascript, since adsense is js.
The code I am talking about is:
<filesMatch "\.(js)$">
Header set Cache-Control "max-age=600, private"
</filesMatch>
My questions:
1) Is it safe to cache javascript if you use adsense
2) What is the best maximum age to cache javascript?
3) Should it be "private" or "public"
3) Is there anything that would pose a risk about this, or does it matter (regarding adsense)
In sum: What is best practice?
Just trying to be extra safe. Any feedback would be extremely appreciated. Thank you!