Skip to content

TYPO3 Extension that adds a cachebuster to files referenced via FAL and Fluids f:uri.resource Viewhelper

Notifications You must be signed in to change notification settings

christophlehmann/cachebuster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TYPO3 Cachebuster Extension

It adds a cachebuster to files referenced via FAL and Fluid Viewhelpers like f:uri.resource or f:image and makes it possible to savely set cache-control headers like

RewriteEngine On
RewriteCond %{QUERY_STRING} ^. [NC]
RewriteRule ^(fileadmin|uploads|typo3conf|typo3temp)/ - [E=SETCACHEHEADER:1]
Header set  Cache-Control "max-age=2592000" env=SETCACHEHEADER

Files in fileadmin/_processed_ are cachable too, since file modifications to the original leads to a new processed file.

So you can add

RewriteRule ^fileadmin/_processed_/ - [E=SETCACHEHEADER:1]

About

TYPO3 Extension that adds a cachebuster to files referenced via FAL and Fluids f:uri.resource Viewhelper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages