Response.Clear() Response.ClearContent()和Response.ClearHeaders()之间的区别

Response.Clear() Response.ClearContent()和Response.ClearHeaders()之间的区别

 

  Response.Clear()方法 Clear方法删除所有缓存中的HTML输出。但此方法只删除Response显示输入信息,不删除Response头信息。

  Response.ClearContent()方法 ClearContent与Clear方法区别就是ClearContent方法不仅删除Response显示输出信息而且还删除Response头信息

  Response.ClearHeaders()方法 ClearHeaders方法只删除头信息,而不删除Response显示输出信息.

如果这篇文章对您有帮助,您可以打赏我

技术交流QQ群:15129679

原文地址:https://www.cnblogs.com/yeminglong/p/2802679.html