Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 960 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 960 Bytes

CoreWeb

Build status

A library of core helpers, extensions, constants, enums and other useful things for .NET Web projects.

Get it on NuGet!

Install-Package CoreWeb

Additional setup

Static file cache busting

I like to use a @madskristensen inspired cache-busting technique for my static assets. See his original post here. Mine has a slight variation though so relative URLs in CSS still work. The corresponding URL Rewrite rule to my Fingerprint helper (that resolves the versioned path to the original, physical file path) needs to be added to your web.config, like so:

<rule name="Resolve Fingerprinted URL" stopProcessing="true">
  <match url="([\S]+)(-ver-[0-9]+)([\S]+)" />
  <action type="Rewrite" url="{R:1}{R:3}" />
</rule>