Output caching in HTTP Handler and SetValidUntilExpires?

I've found the reason. Query string parameter is using in my URL, so it looks like "http://localhost/Image. Ashx?

Id=49". I've thought that if VaryByParams is not set explicitly, server will always take value of id param into account, because context.Response.Cache.VaryByParams. IgnoreParams is false by default.

But in fact, server doesn't use cache at all in this case (nevertheless user browser does) So, if parameters are using in query string, Response.Cache. VaryByParams should be set explicitly, like context.Response.Cache.VaryByParams. IgnoreParams = true for ignoring parameters or context.Response.Cache.

VaryByParams = true for variation by some parameter or context.Response.Cache. VaryByParams"*" = true for variation by all parameters.

I've found the reason. Query string parameter is using in my URL, so it looks like "http://localhost/Image. Ashx?

Id=49". I've thought that if VaryByParams is not set explicitly, server will always take value of id param into account, because context.Response.Cache.VaryByParams. IgnoreParams is false by default.

But in fact, server doesn't use cache at all in this case (nevertheless user browser does). So, if parameters are using in query string, Response.Cache. VaryByParams should be set explicitly, like context.Response.Cache.VaryByParams.

IgnoreParams = true; for ignoring parameters or context.Response.Cache. VaryByParams = true; for variation by some parameter or context.Response.Cache. VaryByParams"*" = true; for variation by all parameters.

Public cacheability depends on user browser or proxy it specifies that the response is cacheable by clients and shared (proxy) caches. Had you tried using HttpCacheability. Server msdn.microsoft.com/en-us/library/system....).aspx.

I've tried it, but in this case caching doesn't work at all. I use ASP. NET development server.

– mayor Jun 8 '10 at 21:33.

Query string parameter is using in my URL, so it looks like "http://localhost/Image. I've thought that if VaryByParams is not set explicitly, server will always take value of id param into account, because context.Response.Cache.VaryByParams. IgnoreParams is false by default.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions