Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for pointing resources to a CDN #494

Merged
merged 3 commits into from
Nov 19, 2015
Merged

Add support for pointing resources to a CDN #494

merged 3 commits into from
Nov 19, 2015

Conversation

Tarmil
Copy link
Member

@Tarmil Tarmil commented Nov 19, 2015

The algorithm to choose what URL to emit for assembly resources and embedded resources is as follows:

  • If there is a configuration variable called WebSharper.CdnFormat.<assemblyname>, then use it as URL format.
  • Else, if the assembly is part of the standard library and the configuration variable WebSharper.StdlibUseCdn is true, then use the stdlib CDN URL format, which is //cdn.websharper.com/{assembly}/{version}/{filename} by default but can be overridden by the configuration variable WebSharper.StdlibCdnFormat.
  • Else, revert to the usual rendering.

Tarmil added a commit that referenced this pull request Nov 19, 2015
Add support for pointing resources to a CDN
@Tarmil Tarmil merged commit 7fe951a into master Nov 19, 2015
@Jand42 Jand42 deleted the cdn branch September 16, 2016 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant