Skip to content

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

License

Notifications You must be signed in to change notification settings

benmccallum/CoreWeb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published