Mobile app version of vmapp.org
Login or Join
Shelley277

: Would it be beneficial to proxy and cache Google Tag Manager Google Tag Manager's JS file is not "cached" normally and requires an extra connection to another server (i.e. new SSL handshake

@Shelley277

Posted in: #GoogleTagManager #Performance #Proxy

Google Tag Manager's JS file is not "cached" normally and requires an extra connection to another server (i.e. new SSL handshake and DNS call).

I was wondering is it beneficial to do an Apache proxy cache to the file and refer to it locally setting the caching settings to something more well defined.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelley277

2 Comments

Sorted by latest first Latest Oldest Best

 

@Reiling115

gtm.js is a dynamic library whose contents change with every container version publish. Thus it's not something you should even try to cache, or else your updates to the container might not be recognized by the browsers of returning visitors.

10% popularity Vote Up Vote Down


 

@Jamie184

It depends, Google's JS files such as analytics are frequently used in most websites. A good chance is the visitor already got a cached copy of the file before he visits your site.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme