承接 laenen/sw6-cache-improvement-plugin 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-07