Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
madskristensen committed Oct 22, 2017
1 parent 00c2702 commit 36440c8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Expand Up @@ -57,6 +57,15 @@ You can do that by looking at the HTML source code. There should no longer by an
<script src="https://myname.azureedge.net/js/site.js"></script>
```

## Dynamic HTML
If HTML is generated from a database or other source where you don't control the markup, you can still cdnify the image elements by using the `cdnify` attribute like so:

```html
<article class="blogpost" cdnify>
@Model.Post
</article>
```

## Configuration
Use the **appsettings.json** file to store the configuration settings.

Expand All @@ -73,4 +82,4 @@ That makes it easy to disable CDN locally when developing and only enable it in

**url**: An absolute URL that is used to prefix all static file references with.

**prefetch**: Will by default inject a DNS prefetch link to the `<head>` of the document to speed up the DNS resolution. Set to `false` to disable.
**prefetch**: Will by default inject a DNS prefetch link to the `<head>` of the document to speed up the DNS resolution. Set to `false` to disable.

0 comments on commit 36440c8

Please sign in to comment.