I am trying to enable output caching on all the ash files on my site. I am trying to stop the server from making a file on every request - I am not trying to ask the browser to cache the file.
I have distribute my ash file to this simple code:
Public class default style: IHttpHandler {public zero process request (HTTP reference reference) {reference.Response .contentType = "text / css"; StringBuilder Style Sheet = New StringBuilder (); StyleSheet.AppendLine (string.Format ("/ * Generate: {0}, {1} * /", DateTime.Now.ToShortDateString (), DateTime.Now.ToLongTimeString ()); Context.Response.Write (styleSheet.ToString ()); }} And in my web .config file, I have this:
& Lt; / Profile & gt; & Lt; / Caching & gt; & Lt; /system.webserver> However, every request in the ashx file creates a new version with an existing version and time.
What am I doing wrong?
Thank you.
Maybe it will help?
It seems that you are not using normal page handlers, it seems that the output caching module is not implemented.
Simon
Comments
Post a Comment