jetheredge/SquishIt — Issue #95: Render without Hash
Author: perosb
Created: 2011-11-09 20:20:09+00:00
State: open

Hi,

in a load balanced environment that uses a CDN the hash can become out of sync.
In my case there is an other CDN module running that inserts its own "hash".

Therefor, wold it be possible to disable the hash all together?
an easy solution would to use ".HashKeyNamed(string.Empty)"
and then in BundleBase.cs
if (string.IsNullrOrEmpty(HashKeyName))
{
}
else if (renderToPath.Contains("?"))
{
renderedTag = FillTemplate(groupBundle, renderToPath + "&" + HashKeyName + "=" + hash);
}
else
{
renderedTag = FillTemplate(groupBundle, renderToPath + "?" + HashKeyName + "=" + hash);
}

Thanks.