how to set httpheaders in asp.net mvc

Posted by Gidon on Stack Overflow See other posts from Stack Overflow or by Gidon
Published on 2010-04-07T19:58:47Z Indexed on 2010/04/07 20:03 UTC
Read the original article Hit count: 618

I need to set http header for disabling ie (7-8) caching (it disturbs my ajax functionallity). I've tried inserting this code to the head of my site.master with no result -

 <META HTTP-EQUIV="Pragma"
CONTENT="no-cache"> <META
 HTTP-EQUIV="Expires" CONTENT="-1">

How and where can I set the HTTP headers? or do you have a better solution for the ie caching issue.

regards.

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about AJAX