Cache TTL on External files

serpent_driver

Well-Known Member
#2
Cache-Control for external files can't be controlled.

Apache config:
# Set Cache Control Headers for Static Source
<FilesMatch "\.(jpg|JPG|jpeg|webp|avif|jpe?g|woff|woff2|png|css|js|gif|swf|ico|ttf|eot|ico|js|mp4|webm|svg|json)$">
    Header set Cache-Control "public,max-age=31536000"
    Header unset ETag
</FilesMatch>
 
Last edited:
Top