inspiredminds / contao-extended-cache-controls
Adds additional options to the page cache settings of Contao.
Fund package maintenance!
fritzmg
Installs: 133
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:contao-bundle
Requires
- php: >=8.1
- contao/core-bundle: ^4.13 || ^5.0
- symfony/config: ^5.4 || ^6.4 || ^7.1
- symfony/dependency-injection: ^5.4 || ^6.4 || ^7.1
- symfony/event-dispatcher: ^5.4 || ^6.4 || ^7.1
- symfony/http-foundation: ^5.4 || ^6.4 || ^7.1
- symfony/http-kernel: ^5.4 || ^6.4 || ^7.1
Requires (Dev)
- contao/easy-coding-standard: ^6.0
- contao/rector: ^1.0
README
Contao Extended Cache Controls
This adds more settings to the Cache settings of a Contao page. These settings can be useful for large sites to keep the HTTP cache size smaller by only caching the most relevant URLs (e.g. only canonical URLs, only URLs with no query parameters or only certain parameters etc.).
- Do not cache non-canonicals: Prevents caching if canonical URLs are enabled for this page and the current URL does not match the canonical URL.
- Do not cache query parameters: Prevents caching if query parameters are present in the URL.
- Allowed query parameters: Allows you to define allowed query parameters for the previous setting. If the URL contains a query parameter not present in this comma-separated list, it will not be cached.
- Do not cache fragment parameters: Prevents caching if fragment parameters are present in the URL, e.g.
/page-alias/foo/bar
- Allowed fragment parameters: Allows you to define allowed fragment parameters for the previous setting. If the URL contains a fragment parameter not present in this comma-separated list, it will not be cached.