benmccallum / CoreWeb

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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>

About

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

License:MIT License


Languages

Language:C# 99.9%Language:Batchfile 0.1%