AnsweredAssumed Answered

Arcgis cdn caching

Question asked by aslaken on Mar 17, 2017

The arcgis js cdn that ESRI suggest developers to use does not seem to be optimized for caching of resources and page speed. By running any of the arcgis js samples through Google Pagespeed, I get a result saying that the files received through the cdn expires after 60 minutes. As an example, please see the following: 

 

https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2F3%2Fsampl…  

 

So far, the only way I've seen to overcome this is to host your own version of the api, on your own server.

 

Are there any other alternatives to resolve this? And: Why is the cdn setup with such a short expiry date? 

Outcomes