CacheBusting:指纹 URL 到静态资源的助手

时间:2024-06-21 00:55:38
【文件属性】:

文件名称:CacheBusting:指纹 URL 到静态资源的助手

文件大小:22KB

文件格式:ZIP

更新时间:2024-06-21 00:55:38

C#

缓存破坏 指纹 URL 到静态资源的助手 ##安装 Install-Package CacheBusting ##用法 <link href="@CacheBusting.FingerPrint.WithFileDate("/css/main.css")" rel="stylesheet"/> 或者 <link href="<%= CacheBusting.FingerPrint.WithFileDate("/css/main.css") %>" rel="stylesheet"/> 将呈现以下 <link href="/css/main.css?v=150414161025" rel="stylesheet"/> 也可以不使用查询字符串进行版本控制,然后需要一些处理程序或重定向模块来解析 url。 <link href="@CacheBusting.FingerPrint.W


【文件预览】:
CacheBusting-master
----.gitignore(3KB)
----CacheBusting.Tests()
--------packages.config(387B)
--------CacheBusting.Tests.csproj(4KB)
--------FingerPrinterTests.cs(1KB)
--------Properties()
----CacheBusting.Sample()
--------Default.aspx.cs(324B)
--------Web.config(744B)
--------Web.Debug.config(1KB)
--------Default.aspx(489B)
--------css()
--------CacheBusting.Sample.csproj(5KB)
--------Web.Release.config(1KB)
--------Properties()
--------Default.aspx.designer.cs(447B)
----LICENSE(1KB)
----README.md(2KB)
----appveyor.yml(394B)
----CacheBusting.sln(2KB)
----CacheBusting()
--------FingerPrint.cs(2KB)
--------packages.config(150B)
--------FingerPrinting()
--------CacheBusting.csproj(3KB)
--------Abstractions()
--------CacheBusting.nuspec(601B)
--------Properties()

网友评论