Permalink
Browse files

removed expires since it is already set on HttpCacheability.NoCache

  • Loading branch information...
1 parent 3bd172d commit 8926d563ace93722c1966f1ef3c77eabdc196a14 @nberardi nberardi committed May 12, 2011
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/Web/Mvc/SerializedView.cs
@@ -139,7 +139,6 @@ public virtual void Render(ViewContext viewContext, TextWriter writer)
if (ContentEncoding != null)
response.ContentEncoding = ContentEncoding;
- response.Cache.SetExpires(DateTime.Today.AddDays(-1D));
response.AppendHeader("X-Robots-Tag", "noindex, follow, noarchive, nosnippet");
response.AppendHeader("Content-Disposition", String.Format(DispositionType + "; filename={0}.{1}; creation-date={2:r}", action, ContentFileExtension, DateTime.UtcNow));

0 comments on commit 8926d56

Please sign in to comment.