<commit_before># Kirby SRI
[![Release](https://img.shields.io/github/release/S1SYPHOS/kirby-sri.svg?color="brightgreen")](https://github.com/S1SYPHOS/kirby-sri/releases) [![License](https://img.shields.io/github/license/S1SYPHOS/kirby-sri.svg)](https://github.com/S1SYPHOS/kirby-sri/blob/master/LICENSE) [![Issues](https://img.shields.io/github/issues/S1SYPHOS/kirby-sri.svg)](https://github.com/S1SYPHOS/kirby-sri/issues)

This plugin generates base64-encoded cryptographic hashes for your css / js files based on their content and adds them to the `integrity` attribute of their corresponding `<link>` or `<script>` elements. It also applies [cache-busting / fingerprinting](#cache-busting--fingerprinting).

**Table of contents**
- [1. What's SRI?](#whats-sri)
- [2. Getting started](#getting-started)
- [3. Configuration](#configuration)
- [4. Cachebusting / fingerprinting](#cache-busting--fingerprinting)
- [5. Be safe - use protection!](#be-safe---use-protection)
- [6. Credits / License](#credits--license)

## What's SRI?
> Subresource Integrity (SRI) is a security feature that enables browsers to verify that files they fetch (for example, from a CDN) are delivered without unexpected manipulation. It works by allowing you to provide a cryptographic hash that a fetched file must match.
> [Mozilla Developer Network](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)

Enter `kirby-sri`: Kirby-side generated SRI hashes for [safer CDN usage](https://hacks.mozilla.org/2015/09/subresource-integrity-in-firefox-43/). Read more about CDN integration and Kirby in the [docs](https://getkirby.com/docs/cookbook/kirby-loves-cdn)) or over at Kirby's partner [KeyCDN](https://www.keycdn.com/support/kirby-cdn-integration/) to get started.<commit_msg>Updating MDN quote<commit_after># Kirby SRI
[![Release](https://img.shields.io/github/release/S1SYPHOS/kirby-sri.svg?color="brightgreen")](https://github.com/S1SYPHOS/kirby-sri/releases) [![License](https://img.shields.io/github/license/S1SYPHOS/kirby-sri.svg)](https://github.com/S1SYPHOS/kirby-sri/blob/master/LICENSE) [![Issues](https://img.shields.io/github/issues/S1SYPHOS/kirby-sri.svg)](https://github.com/S1SYPHOS/kirby-sri/issues)

This plugin generates base64-encoded cryptographic hashes for your css / js files based on their content and adds them to the `integrity` attribute of their corresponding `<link>` or `<script>` elements. It also applies [cache-busting / fingerprinting](#cache-busting--fingerprinting).

**Table of contents**
- [1. What's SRI?](#whats-sri)
- [2. Getting started](#getting-started)
- [3. Configuration](#configuration)
- [4. Cachebusting / fingerprinting](#cache-busting--fingerprinting)
- [5. Be safe - use protection!](#be-safe---use-protection)
- [6. Credits / License](#credits--license)

## What's SRI?
> "Subresource Integrity (SRI) is a security feature that enables browsers to verify that files they fetch (for example, from a CDN) are delivered without unexpected manipulation. It works by allowing you to provide a cryptographic hash that a fetched file must match."
>
> Source: [Mozilla Developer Network](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)

Enter `kirby-sri`: Kirby-side generated SRI hashes for [safer CDN usage](https://hacks.mozilla.org/2015/09/subresource-integrity-in-firefox-43/). Read more about CDN integration and Kirby in the [docs](https://getkirby.com/docs/cookbook/kirby-loves-cdn)) or over at Kirby's partner [KeyCDN](https://www.keycdn.com/support/kirby-cdn-integration/) to get started.
{'fraction_non_alphanumeric': 0.14816885658372939, 'fraction_numerical': 0.012300810735253005, 'mean_word_length': 5.137221269296741, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 12, 'https://': 20, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '31645', 'n_tokens_mistral': 1243, 'n_tokens_neox': 1164, 'n_words': 278}