IIS cache for js and css
I want to cache certain file extensions cache in IIS to improve performance. esri.js for html5view took 19 seconds to load, when the viewer is launch. How can I cache esri.js on IIS to improve launch performance? I did IIS output cache but didn't work. I set to use local resource so esri.js is from my server not from esri.
0
-
Hi Hwa Saup,
If you edit this file - C:\inetpub\wwwroot\Html5Viewer\Index.html there is a setting to use the local copy of the ESRI JS files. This would eliminate the need to download them. Setting it to use the local copy may not help with your delay if the delay is caused by your Anti-Virus software though.
The line looks like this -
// Uncomment the below line to only use local copies of Esri API files. This is done automatically in the Geocortex Mobile App Framework.
and you would remove the two forward slashes on the following line in order to enable the local copies.
Regards,
Wayne Richard
Latitude Geographics Group Ltd.
Head Office: 300 – 1117 Wharf Street Victoria, BC Canada V8W 1T7
Tel: (250) 381-8130 | Fax: (250) 381-8132 | wrichard@latitudegeo.com
Developers of Geocortex web-based mapping software | www.geocortex.com
An Esri Platinum Business Partner0 -
Wayne, is there any drawbacks to doing this? I'm assuming this only helps on multiple loads of site, once the user has cached the local copy? 0 -
The intended use is for servers that do not have internet access and all map services are internal.
Yes, once the file is cached there should be no benefit at all, although some organizations disable caching in browsers through group policy. I have also seen cases where servers take several seconds to determine if a file is in cache or not so it there may be no change if this is the case.
I am not aware of any disadvantages of using this setting.
Regards,
Wayne0
Please sign in to leave a comment.
Comments
3 comments