<commit_before># System.Web.Optimization.HashCache

<img src="https://ci.appveyor.com/api/projects/status/e0xqdpo0078xd94w/branch/master?svg=true&passingText=build%20status%20-%20awesomesauce" style="width:728px;" />

A helper bundle transform which prevents caching of bundle contents when optimizations 
are disabled - when debug is enabled or BundleTable.EnableOptimizations is false.

## Get it on Nuget!

    Install-Package System.Web.Optimization.HashCache

## Elevator Speech

This transform prevents browsers from loading old cached versions of your 
code when you are running in debug mode, by adding a hash of the file content
to the end of the file path:

```
<link href="/css/styles.css?~v=Iz7DDyL6DCDnT_L414h7aec4VUNOlN9dDYVRGoD2ZB01" rel="stylesheet"/>
<script src="/js/app.js?~v=QWNK55__txkMIVFvtdF3fy5lDLK7GLkwLzP8nzCV6nw1"></script>
```

## Usage

### You can apply HashCache to all bundles in a BundlesCollection

Execute the ApplyHashCache() extension method on the BundlesCollection Instance 
**after all bundles have been added to the collection**. 

```cs<commit_msg>md udpate<commit_after># System.Web.Optimization.HashCache

<img src="https://ci.appveyor.com/api/projects/status/e0xqdpo0078xd94w/branch/master?svg=true&passingText=build%20status%20-%20awesomesauce" width="100%" />

A helper bundle transform which prevents caching of bundle contents when optimizations 
are disabled - when debug is enabled or BundleTable.EnableOptimizations is false.

## Get it on Nuget!

    Install-Package System.Web.Optimization.HashCache

## Elevator Speech

This transform prevents browsers from loading old cached versions of your 
code when you are running in debug mode, by adding a hash of the file content
to the end of the file path:

```
<link href="/css/styles.css?~v=Iz7DDyL6DCDnT_L414h7aec4VUNOlN9dDYVRGoD2ZB01" rel="stylesheet"/>
<script src="/js/app.js?~v=QWNK55__txkMIVFvtdF3fy5lDLK7GLkwLzP8nzCV6nw1"></script>
```

## Usage

### You can apply HashCache to all bundles in a BundlesCollection

Execute the ApplyHashCache() extension method on the BundlesCollection Instance 
**after all bundles have been added to the collection**. 

```cs
{'fraction_non_alphanumeric': 0.09271217712177121, 'fraction_numerical': 0.03228782287822878, 'mean_word_length': 5.694444444444445, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2381144', 'n_tokens_mistral': 760, 'n_tokens_neox': 700, 'n_words': 208}