silverstripe-module cdnrewrite
Rewrites all links for assets to use a cdn instead
wernerkrauss/cdnrewrite
Rewrites all links for assets to use a cdn instead
- Wednesday, March 23, 2016
- by wernerkrauss
- Repository
- 2 Watchers
- 4 Stars
- 1,597 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 4 Forks
- 3 Open issues
- 4 Versions
- 7 % Grown
silverstripe-cdnrewrite
, (*1)
Rewrites all links for assets to use a cdn instead. It's not responsible to upload or sync the files anywhere. Some CDNs can do this for you., (*2)
Requirements
Installation
Download and install manually or use composer., (*3)
Configuration
You have to enable this filter manually using CDNRewriteRequestFilter.cdn_rewrite
config var.
Also define CDNRewriteRequestFilter.cdn_domain
with protocol and host., (*4)
Your config.yml might look like:, (*5)
CDNRewriteRequestFilter:
cdn_rewrite: true #global switch
cdn_domain: 'http://cdn.mydomain.com'
rewrite_assets: true #rewrite stuff in assets
rewrite_themes: false #do not rewrite stuff in themes folder
dev-master
9999999-dev
Rewrites all links for assets to use a cdn instead
Sources
Download
MIT
The Requires
extension
silverstripe
0.0.3
0.0.3.0
Rewrites all links for assets to use a cdn instead
Sources
Download
MIT
The Requires
extension
silverstripe
0.0.2
0.0.2.0
Rewrites all links for assets to use a cdn instead
Sources
Download
MIT
The Requires
extension
silverstripe
0.0.1
0.0.1.0
Rewrites all links for assets to use a cdn instead
Sources
Download
MIT
The Requires
extension
silverstripe