Caching Images in the Global Assets folder

Vote:
 

Hi,

Is it possible to Cache images that are in the Global Assets folder? Im performing a Pingdom Website Speed test and all my images are failing the Leverage browser caching section.

I hope this makes sense,

Jon

#132606
Aug 13, 2015 16:44
Vote:
 

I forgot to mention that the site is hosted on Azure.

#132607
Aug 13, 2015 16:55
Vote:
 

http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-CMS/8/Caching/Object-caching/

<configuration>

<!--Configures expiration for files in CMS/VPP-->
<staticFile expirationTime="12:0:0" />

<!--Configures expiration in IIS-->
<system.webServer>
   <!--Configures client headers for static files from IIS-->
   <staticContent>
       <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="1.00:00:00"></clientCache>
   </staticContent>
   <!--Configures output and kernel caching for ALL images (both CMS and IIS)-->
   <caching>
      <profiles>
        <add extension=".gif" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" duration="0.00:01:00" location="Any" />
        <add extension=".png" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" duration="0.00:01:00" location="Any" />
        <add extension=".js" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" duration="0.00:01:00" location="Any" />
        <add extension=".css" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" duration="0.00:01:00" location="Any" />
        <add extension=".jpg" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" duration="0.00:01:00" location="Any" />
        <add extension=".jpeg" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" duration="0.00:01:00" location="Any" />
      </profiles>
   </caching>
</system.webServer>
</configuration>

/K

#132608
Aug 13, 2015 16:59
Vote:
 

Is there anything for BLogs on an Azure hosting?

#132610
Aug 13, 2015 17:04
Vote:
 

Do you mean Blobs(Blogs)?

Pingdom will be checking the expiration of static files cache in the browsers. If not set, will mark negative. In theory (I might be wrong) those settings should work pingdom should not have any concern what type of blob have been used. it will be working on contents as HTML, Script, CSS, Images

Regards
/K

#132611
Aug 13, 2015 17:13
Vote:
 

Hi Jon,

If you're going to use staticFile - don't forget you'll also need:-

<section name="staticFile" type="EPiServer.Framework.Configuration.StaticFileSection, EPiServer.Framework" allowLocation="true" />

Then you simply add the following to your web.config:-

<staticFile expirationTime="8.0:0:0" />

8 Days should be enough to get around the ySlow mininum requirements.

Cheers

Paul

#132612
Edited, Aug 13, 2015 17:17
Vote:
 

Sorry, yes - Blobs :).

Cool, that all makes sense.

Jon

#132613
Aug 13, 2015 17:17
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.