Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 15, 2011 05:35 PM by Claudio7810
Member
57 Points
89 Posts
Dec 14, 2011 06:11 PM|LINK
Hi All,
I am trying to optimize caching as suggested in the Google page at
http://code.google.com/speed/page-speed/docs/caching.html#LeverageBrowserCaching
Unofrtunately there is no much clear info in the web and was wondering if you could help with this.
Thanks
http caching
Contributor
2233 Points
375 Posts
ASPInsiders
MVP
Dec 15, 2011 03:21 AM|LINK
You can apply those cache settings with the Response.Cache object or directly with Response.AppendHeader().
For example:
Response.Cache.SetCacheability(HttpCacheability.Public); Response.ExpiresAbsolute = DateTime.UtcNow.AddDays(1); Response.Cache.SetLastModified(DateTime.UtcNow);
Hope this helps,
+++ Rick ---
Dec 15, 2011 03:25 AM|LINK
Dec 15, 2011 05:35 PM|LINK
Dear Rick,
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.
Cheers,
CLaudio
Claudio7810
Member
57 Points
89 Posts
Optimizing Caching
Dec 14, 2011 06:11 PM|LINK
Hi All,
I am trying to optimize caching as suggested in the Google page at
http://code.google.com/speed/page-speed/docs/caching.html#LeverageBrowserCaching
Unofrtunately there is no much clear info in the web and was wondering if you could help with this.
Thanks
http caching
rstrahl
Contributor
2233 Points
375 Posts
ASPInsiders
MVP
Re: Optimizing Caching
Dec 15, 2011 03:21 AM|LINK
You can apply those cache settings with the Response.Cache object or directly with Response.AppendHeader().
For example:
Response.Cache.SetCacheability(HttpCacheability.Public); Response.ExpiresAbsolute = DateTime.UtcNow.AddDays(1); Response.Cache.SetLastModified(DateTime.UtcNow);West Wind Technologies
Making waves on the Web
www.west-wind.com/weblog
rstrahl
Contributor
2233 Points
375 Posts
ASPInsiders
MVP
Re: Optimizing Caching
Dec 15, 2011 03:25 AM|LINK
You can apply those cache settings with the Response.Cache object or directly with Response.AppendHeader().
For example:
Response.Cache.SetCacheability(HttpCacheability.Public); Response.ExpiresAbsolute = DateTime.UtcNow.AddDays(1); Response.Cache.SetLastModified(DateTime.UtcNow);Hope this helps,
+++ Rick ---
http caching
West Wind Technologies
Making waves on the Web
www.west-wind.com/weblog
Claudio7810
Member
57 Points
89 Posts
Re: Optimizing Caching
Dec 15, 2011 05:35 PM|LINK
Dear Rick,
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
http caching