WordPress.org

Forums

WP Minify
It really does work (1 post)

  1. Ozjon
    Member
    Posted 1 year ago #

    Increased my site speed and rating about 20%. On other sites with heavy CSS and JS it did better.

    I also use .htaccess code to gzip/zip thes file types js/css/txt/html which boosted the response time further.
    Furthermore, add caching and you'll have a site that will be more responsive.

    Here's my secret code that doubles up the gains.

    # compress text, HTML, JavaScript, CSS, and XML
    # the server needs to support compression
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript

    # Turn on Expires and set default expires to 3 days
    ExpiresActive On
    ExpiresDefault A259200

    # Set up caching on media files for 1 week
    <FilesMatch "\.(ico|gif|jpg|jpeg|png|flv|pdf|swf|mov|mp3|wmv|ppt)$">
    ExpiresDefault A604800
    Header append Cache-Control "public"
    </FilesMatch>

    # Set up 2 days caching on commonly updated files
    <FilesMatch "\.(xml|txt|html|js|css)$">
    ExpiresDefault A193000
    Header append Cache-Control "private, must-revalidate"
    </FilesMatch>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.