laenen/sw6-cache-improvement-plugin
最新稳定版本:1.0.1
Composer 安装命令:
composer require laenen/sw6-cache-improvement-plugin
包简介
laenen/sw6-cache-improvement-plugin
README 文档
README
Small changes to Shopware Core which improve the caches for your static assets.
✨ Features
- Removes query string parameters from images
- Removes query string parameters from js and css
🛠️ Use Case
Your webshop is using a CDN (like Fastly or Cloudflare) to cache the static assets. These do not get cached correctly when the asset url contains a query parameter. By using this plugin you can remove the parameters, making the caching of your static assets better.
🚀 Installation
composer require laenen/sw6-cache-improvement-plugin bin/console plugin:install --activate LaenenCacheImprovement
✅ Compatibility
- Shopware 6.6+
🧩 Configuration
In the Plugin Configuration, enable or disable the functions:
- "Media url generation" for your CMS assets
- "Static Assets url generation" for js and css files
🧽 Notes
- Due to the generated urls not having a timestamp anymore, you will need to use a different method to bust the cache on file updates. For example a time-based folder structure for your Media, and/or cache clearing in your pipelines.
统计信息
- 总下载量: 504
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-07