CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#11528] Consider a small change in $cmsms_root/doc/htaccess.txt for .svg files compression / caching

avatar
Created By: Deleted User (deleteduser_11200)
Date Submitted: 2017-08-08 04:51

Assigned To:
Resolution: Fixed
State: Open
Summary:
Consider a small change in $cmsms_root/doc/htaccess.txt for .svg files compression / caching
Detailed Description:
* Feature

Consider a small change in $cmsms_root/doc/htaccess.txt  for .svg files
compression / caching


* Description:

Over the years .svg files got more populair for icons, logos, backgrounds and
animations ....

Browser support is good, display is sharp and files sizes are smaller than
pixelbased images.

I found out that the example htaccess.txt file does not contain hints for the
Apache deflate and expires module.

To save extra bytes adding compression and caching of .svg files can save extra
bites down the wire.


* Code change:


<IfModule deflate_module>
    AddOutputFilterByType DEFLATE image/svg+xml
</IfModule>

<IfModule mod_expires.c>
ExpiresByType image/svg+xml "access plus 1 year"
</IfModule>

History

Comments
avatar
Date: 2017-11-26 18:59
Posted By: Robert Campbell (calguy1000)

Done for CMSMS 2.3
      
Updates

Updated: 2017-11-26 18:59
resolution_id: => 7