SVG in WP-Optimize Browser Cache

[ad_1]

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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer