C
Curia Damiano
Using VS 2003, I create a new web application.
In the Page_Load of the main page I insert:
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(new DateTime(1990, 1, 1));
but in the header of the resulting page nothing changes!
So I've tried with:
Response.ClearHeaders();
Response.AppendHeader("xx", "yy"); // to adjust
but even in this case, nothing changes...
Then I've tried to move these instruction at the
beginning and at the end of the OnInit event, but even in
this case nothing changes.
Can someone help me, plese?
Thanks, Curia Damiano
PS I need to set them via code, because in reality these
instruction go in a page defined by me, from whom all the
page of the my web-app derive.
In the Page_Load of the main page I insert:
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(new DateTime(1990, 1, 1));
but in the header of the resulting page nothing changes!
So I've tried with:
Response.ClearHeaders();
Response.AppendHeader("xx", "yy"); // to adjust
but even in this case, nothing changes...
Then I've tried to move these instruction at the
beginning and at the end of the OnInit event, but even in
this case nothing changes.
Can someone help me, plese?
Thanks, Curia Damiano
PS I need to set them via code, because in reality these
instruction go in a page defined by me, from whom all the
page of the my web-app derive.