Fix: Updated Caching Policy for Bundles
This commit is contained in:
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.2.0624.1900")]
|
[assembly: AssemblyVersion("1.2.0625.1305")]
|
||||||
[assembly: AssemblyFileVersion("1.2.0624.1900")]
|
[assembly: AssemblyFileVersion("1.2.0625.1305")]
|
||||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.2.0624.1900")]
|
[assembly: AssemblyVersion("1.2.0625.1304")]
|
||||||
[assembly: AssemblyFileVersion("1.2.0624.1900")]
|
[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
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.2.0624.1900")]
|
[assembly: AssemblyVersion("1.2.0625.1304")]
|
||||||
[assembly: AssemblyFileVersion("1.2.0624.1900")]
|
[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
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.2.0624.1900")]
|
[assembly: AssemblyVersion("1.2.0625.1305")]
|
||||||
[assembly: AssemblyFileVersion("1.2.0624.1900")]
|
[assembly: AssemblyFileVersion("1.2.0625.1305")]
|
||||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.2.0624.1900")]
|
[assembly: AssemblyVersion("1.2.0625.1305")]
|
||||||
[assembly: AssemblyFileVersion("1.2.0624.1900")]
|
[assembly: AssemblyFileVersion("1.2.0625.1305")]
|
||||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.2.0624.1900")]
|
[assembly: AssemblyVersion("1.2.0625.1305")]
|
||||||
[assembly: AssemblyFileVersion("1.2.0624.1900")]
|
[assembly: AssemblyFileVersion("1.2.0625.1305")]
|
||||||
@@ -120,13 +120,11 @@ namespace Disco.Web.Extensions.MvcExtensions.Bundles
|
|||||||
|
|
||||||
// Write Headers
|
// Write Headers
|
||||||
var cache = context.Response.Cache;
|
var cache = context.Response.Cache;
|
||||||
cache.SetCacheability(HttpCacheability.Public);
|
|
||||||
cache.SetOmitVaryStar(true);
|
cache.SetOmitVaryStar(true);
|
||||||
cache.SetExpires(DateTime.Now.AddYears(1));
|
cache.SetExpires(DateTime.Now.AddYears(1));
|
||||||
cache.SetValidUntilExpires(true);
|
cache.SetValidUntilExpires(true);
|
||||||
cache.SetMaxAge(TimeSpan.FromDays(365));
|
cache.SetMaxAge(TimeSpan.FromDays(365));
|
||||||
cache.SetLastModified(DateTime.Now);
|
cache.SetCacheability(HttpCacheability.Public);
|
||||||
cache.VaryByHeaders["User-Agent"] = true;
|
|
||||||
|
|
||||||
// Write File
|
// Write File
|
||||||
context.Response.WriteFile(this.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
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.2.0624.1900")]
|
[assembly: AssemblyVersion("1.2.0625.1305")]
|
||||||
[assembly: AssemblyFileVersion("1.2.0624.1900")]
|
[assembly: AssemblyFileVersion("1.2.0625.1305")]
|
||||||
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
|
|||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Revision and Build Numbers
|
// You can specify all the values or you can default the Revision and Build Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
[assembly: AssemblyVersion("1.2.0624.1900")]
|
[assembly: AssemblyVersion("1.2.0625.1305")]
|
||||||
[assembly: AssemblyFileVersion("1.2.0624.1900")]
|
[assembly: AssemblyFileVersion("1.2.0625.1305")]
|
||||||
Reference in New Issue
Block a user