Audiofiles: Serve static assets with an efficient cache policy




Wordpress LScache Plugin: Audiofiles: Serve static assets with an efficient cache policy

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hey! Im using LiteSpeed Cachings Browser Cache Settings to enable browser cache, improve performance and make Google Lighthouse happy. It enables browser caching via .htaccess for many file type, including jpg, png, fonts and so on. It appears, though, that many audio file types are not present in the .htaccess file, and, causing Google Lighthouse to suggest Serve static assets with an efficient cache policy Im using the standard Gutenberg Audio Block (a HTML Audio Element) for my audio, nothing special there. The following addition to .htaccess solved the problem: ### SW-CUSTOM-BROWSER-CACHE start ### Header set Cache-Control max-age=31536000, public ### SW-CUSTOM-BROWSER-CACHE end ### Maybe the LiteSpeed Browser Cache Settings, could take care of audio as well, so I dont have to? Kind regards Bjarne The page I need help with: https://sustainableweb.dk/en/audio-formats/ Hi, yeah , its rare to see site with audio file will forward to devs as feature requests. Best regards, Thank you



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference