Asp.net mvc output cache, problem in trailing “/” character?

Protected void Application_AcquireRequestState(object sender, EventArgs e) { string url = HttpContext.Current.Request.Url. AbsolutePath; if (string. IsNullOrEmpty(HttpContext.Current.Request.Url.

Query)) { int I = url. LastIndexOf('/'); if (i RedirectPermanent(url); } } } some problem. Trying... but nor work :(.

To my knowledge it's not good to have one page accessible via many different URL's. So you could make you application to redirect when it encounters trailing slash.

ASP.Net MVC 3 RTM. I am trying to use the OutputCache attribute in an action, but doesn't appear to be working. Here is the Http Request and Response.

This is included in my action, but not in the static images.

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