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

1.0.1 2024-09-22 16:53 UTC

This package is auto-updated.

Last update: 2024-10-23 12:36:03 UTC


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.