To add SVG file support to the browser cache functionality in WP-Optimize, you can extend the .htaccess
file by adding a directive that includes SVGs under cache control. This would enable browser caching for SVG files similarly to other static assets.
To do this manually, you can add the following line to the .htaccess
configuration for browser caching:
<IfModule mod_expires.c>
ExpiresByType image/svg+xml "access plus 1 month"
</IfModule>
This code ensures that SVG files are cached by the browser for one month. You can modify the duration as needed.
Since this isn’t currently an automated feature in WP-Optimize based on your inquiry, you could consider adding this line manually or suggesting it as an enhancement for future updates to the plugin.