Click here to Skip to main content
15,920,031 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Explain This code:


C#
WebOperationContext.Current.OutgoingResponse.Headers.Add(HttpResponseHeader.CacheControl, "no-cache, must-revalidate");
  WebOperationContext.Current.OutgoingResponse.Headers.Add(HttpResponseHeader.Expires, "-1");
Posted
Updated 31-May-12 22:45pm
v2
Comments
Manfred Rudolf Bihy 1-Jun-12 4:42am    
What have you researched and which parts don't you understand?
Sandeep Mewara 1-Jun-12 5:19am    
And what do you understand by yourself?

Look here[^].
 
Share this answer
 
This part of the header tells the browser, that it should not store the page and in case of any redisplay (even with "back") should refetch it from the server.
Read this short article: http://palizine.plynt.com/issues/2008Jul/cache-control-attributes/[^]
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900