Fix: Updated Caching Policy for Bundles

This commit is contained in:
Gary Sharp
2013-06-27 16:50:56 +10:00
parent 7dfae21978
commit 9076b34f83
9 changed files with 17 additions and 19 deletions
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0624.1900")]
[assembly: AssemblyFileVersion("1.2.0624.1900")]
[assembly: AssemblyVersion("1.2.0625.1305")]
[assembly: AssemblyFileVersion("1.2.0625.1305")]
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0624.1900")]
[assembly: AssemblyFileVersion("1.2.0624.1900")]
[assembly: AssemblyVersion("1.2.0625.1304")]
[assembly: AssemblyFileVersion("1.2.0625.1304")]
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0624.1900")]
[assembly: AssemblyFileVersion("1.2.0624.1900")]
[assembly: AssemblyVersion("1.2.0625.1304")]
[assembly: AssemblyFileVersion("1.2.0625.1304")]
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0624.1900")]
[assembly: AssemblyFileVersion("1.2.0624.1900")]
[assembly: AssemblyVersion("1.2.0625.1305")]
[assembly: AssemblyFileVersion("1.2.0625.1305")]
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0624.1900")]
[assembly: AssemblyFileVersion("1.2.0624.1900")]
[assembly: AssemblyVersion("1.2.0625.1305")]
[assembly: AssemblyFileVersion("1.2.0625.1305")]
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0624.1900")]
[assembly: AssemblyFileVersion("1.2.0624.1900")]
[assembly: AssemblyVersion("1.2.0625.1305")]
[assembly: AssemblyFileVersion("1.2.0625.1305")]
@@ -120,13 +120,11 @@ namespace Disco.Web.Extensions.MvcExtensions.Bundles
// Write Headers
var cache = context.Response.Cache;
cache.SetCacheability(HttpCacheability.Public);
cache.SetOmitVaryStar(true);
cache.SetExpires(DateTime.Now.AddYears(1));
cache.SetValidUntilExpires(true);
cache.SetMaxAge(TimeSpan.FromDays(365));
cache.SetLastModified(DateTime.Now);
cache.VaryByHeaders["User-Agent"] = true;
cache.SetCacheability(HttpCacheability.Public);
// Write File
context.Response.WriteFile(this.File);
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0624.1900")]
[assembly: AssemblyFileVersion("1.2.0624.1900")]
[assembly: AssemblyVersion("1.2.0625.1305")]
[assembly: AssemblyFileVersion("1.2.0625.1305")]
+2 -2
View File
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.2.0624.1900")]
[assembly: AssemblyFileVersion("1.2.0624.1900")]
[assembly: AssemblyVersion("1.2.0625.1305")]
[assembly: AssemblyFileVersion("1.2.0625.1305")]