Hi, I am trying to use a URL Rewriting technique outlined here:
Basically I create a HTTPHandlerFact ory that scans whether the URL needs to
be rewritten, and if so, it passes back the Page built from the rewritten url.
I am trying to combine this with OutputCache or some kind of caching. Could
someone recommend me the best way to do this or perhaps what the typical way
to implement URL Rewriting and OutputCache together would be?
I've tried to modify the HttpContext object passed into the GetHandler
method of the IHttpHandlerFac tory, but the following lines do not seem to
work:
context.Respons e.Cache.SetExpi res(DateTime.No w.AddSeconds(60 ));
context.Respons e.Cache.SetCach eability(HttpCa cheability.Publ ic);
context.Respons e.Cache.SetVali dUntilExpires(f alse);
context.Respons e.Cache.VaryByP arams["ProductID"] = true;
Thanks!
Basically I create a HTTPHandlerFact ory that scans whether the URL needs to
be rewritten, and if so, it passes back the Page built from the rewritten url.
I am trying to combine this with OutputCache or some kind of caching. Could
someone recommend me the best way to do this or perhaps what the typical way
to implement URL Rewriting and OutputCache together would be?
I've tried to modify the HttpContext object passed into the GetHandler
method of the IHttpHandlerFac tory, but the following lines do not seem to
work:
context.Respons e.Cache.SetExpi res(DateTime.No w.AddSeconds(60 ));
context.Respons e.Cache.SetCach eability(HttpCa cheability.Publ ic);
context.Respons e.Cache.SetVali dUntilExpires(f alse);
context.Respons e.Cache.VaryByP arams["ProductID"] = true;
Thanks!