Skip to main content

IIS cache for js and css

Comments

3 comments

  • Permanently deleted user
    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 Partner

     

     
    0
  • Permanently deleted user
    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
  • Permanently deleted user
    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,

     

    Wayne
    0

Please sign in to leave a comment.