Last post Dec 15, 2011 05:35 PM by Claudio7810
Dec 14, 2011 06:11 PM|claudio7810|LINK
I am trying to optimize caching as suggested in the Google page at
Unofrtunately there is no much clear info in the web and was wondering if you could help with this.
Dec 15, 2011 03:21 AM|rstrahl|LINK
You can apply those cache settings with the Response.Cache object or directly with Response.AppendHeader().
Response.ExpiresAbsolute = DateTime.UtcNow.AddDays(1);
Hope this helps,
+++ Rick ---
Dec 15, 2011 03:25 AM|rstrahl|LINK
Dec 15, 2011 05:35 PM|claudio7810|LINK
thanks for your feedback.
I am actually trying to configure this correctly in the web.config file because most of my files are .htm files.
So I would need to cache my CSS, Images and Java files.
I am trying to use
<staticContent><clientCache cacheControlMode="UseExpires" httpExpires="Mon, 10 Dec 2012 00:00:00 GMT" /></staticContent>
However, when I analyze the page speed performance, the result is in Yellow instead of Green (meaning that something is missing).
THanks for letting me know your thoughts.