Add support for pointing resources to a CDN #494

merged 3 commits into from Nov 19, 2015


None yet
1 participant

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 //{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

Merge pull request #494 from intellifactory/cdn
Add support for pointing resources to a CDN

@Tarmil Tarmil merged commit 7fe951a into master Nov 19, 2015

@Jand42 Jand42 deleted the cdn branch Sep 16, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment