Last post Aug 01, 2007 09:49 PM by rstrahl
Aug 01, 2007 05:16 AM|goldemberg|LINK
i'm trying to use CSS handler, such as implented in this link:
but it has a problem of performance which i can't figure: the browser downloads the css file in each request,
even that it is cached in the browser.
how can i prevent it?
can you help please?
thank u very much,
Aug 01, 2007 09:49 PM|rstrahl|LINK
You need to make sure the module properly sets the Response headers for the request. By convention the behavior is different whether you are running in Debug mode or Release mode for the site (web.config). The module doesn't set any headers so there's effectively
no caching happening at all.
Response.ExpiresAbsolute = DateTime.UtcNow.AddYears(1);
Hope this helps,
+++ Rick ---