wernerkrauss/cdnrewrite
最新稳定版本:0.0.3
Composer 安装命令:
composer require wernerkrauss/cdnrewrite
包简介
Rewrites all links for assets to use a cdn instead
README 文档
README
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.
Requirements
Installation
Download and install manually or use composer.
Configuration
You have to enable this filter manually using CDNRewriteRequestFilter.cdn_rewrite config var.
Also define CDNRewriteRequestFilter.cdn_domain with protocol and host.
Your config.yml might look like:
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
统计信息
- 总下载量: 2.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-11