Skip to content

Instantly share code, notes, and snippets.

@PetraMotz
Created August 4, 2021 12:00
Show Gist options
  • Save PetraMotz/8ecd61ba92d664b81c8fc20de24e0dc2 to your computer and use it in GitHub Desktop.
Save PetraMotz/8ecd61ba92d664b81c8fc20de24e0dc2 to your computer and use it in GitHub Desktop.
TYPO3 #t3 #pdf #cache
in htaccess datei
<FilesMatch ".(doc|pdf)$">
Header unset ETag
Header unset Pragma
Header unset Cache-Control
Header unset Last-Modified
Header set Pragma "no-cache"
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Expires "Thu, 1 Jan 1970 00:00:00 GMT"
Header set X-Robots-Tag "noindex, nofollow"
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment