Skip to content

Adds additional options to the page cache settings of Contao.

License

Notifications You must be signed in to change notification settings

inspiredminds/contao-extended-cache-controls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Adds additional options to the page cache settings of Contao.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages