WordPress.org

Ready to get started?Download WordPress

Forums

WP Fastest Cache
[resolved] No minification even though it is enabled? (16 posts)

  1. rassom
    Member
    Posted 8 months ago #

    Thanks for a wonderfully easy to use plugin! :)

    It works great except that for me it doesn't minify even the I have set the setting to do it. You can see here that Google Pagespeed says it can be minified quite a lot more:
    https://developers.google.com/speed/pagespeed/insights/?hl=en&url=www.dktrafik.dk

    Any ideas why it's not working?

    Thanks! :)
    RAsmus

    https://wordpress.org/plugins/wp-fastest-cache/

  2. rassom
    Member
    Posted 8 months ago #

    PS. Doesn't look like it combines the js and css files either when I view the source of http://dktrafik.dk?

  3. rassom
    Member
    Posted 8 months ago #

    Here's my .htcaccess contents:

    # BEGIN WpFastestCache
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    AddDefaultCharset UTF-8
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteCond %{REQUEST_URI} !^/wp-login.php
    RewriteCond %{REQUEST_URI} !^/wp-admin
    RewriteCond %{REQUEST_URI} !^/wp-content
    RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
    RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
    RewriteCond /var/www/dktrafik.dk/public_html/wp-content/cache/all/$1/index.html -f
    RewriteRule ^(.*) "/wp-content/cache/all/$1/index.html" [L]
    </IfModule>
    <FilesMatch "\.(html|htm)$">
    FileETag None
    <ifModule mod_headers.c>
    Header unset ETag
    Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires "Mon, 29 Oct 1923 20:30:00 GMT"
    </ifModule>
    </FilesMatch>
    # END WpFastestCache
    # BEGIN GzipWpFastestCache
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE image/svg+xml
    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
    AddOutputFilterByType DEFLATE application/x-font-ttf
    AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
    AddOutputFilterByType DEFLATE font/opentype font/ttf font/eot font/otf
    </IfModule>
    # END GzipWpFastestCache
    # BEGIN LBCWpFastestCache
    <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|x-html|css|xml|js|woff|ttf|svg|eot)(\.gz)?$">
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault A0
    ExpiresByType image/gif A2592000
    ExpiresByType image/png A2592000
    ExpiresByType image/jpg A2592000
    ExpiresByType image/jpeg A2592000
    ExpiresByType image/ico A2592000
    ExpiresByType text/css A2592000
    ExpiresByType text/javascript A2592000
    ExpiresByType application/javascript A2592000
    </IfModule>
    <IfModule mod_headers.c>
    Header set Expires "max-age=2592000, public"
    Header unset ETag
    Header set Connection keep-alive
    </IfModule>
    FileETag None
    </FilesMatch>
    # END LBCWpFastestCache
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

  4. rassom
    Member
    Posted 8 months ago #

    And my WP Fastest Cache options (screenshot): http://goo.gl/Op08N1

  5. Emre Vona
    Member
    Plugin Author

    Posted 8 months ago #

    First of all thank you so much for detailed information :)

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    <link rel='stylesheet' id='bootstrap-css'  href='/wp-content/themes/porto/assets/vendor/bootstrap/css/bootstrap.css?ver=3.9.1' type='text/css' media='all' />

    /wp-content/themes/porto/assets/vendor/bootstrap/css/bootstrap.css?ver=3.9.1 is needed to be converted to http://dktrafik.dk/wp-content/themes/porto/assets/vendor/bootstrap/css/bootstrap.css?ver=3.9.1

  6. rassom
    Member
    Posted 7 months ago #

    Sorry for the late reply - for some reason I didn't get an e-mail notification that you replied.

    Anyway, I am not sure I know what you mean/how to fix? Do you want me to put the domain name in the URL, i.e. replace
    <link rel='stylesheet' id='bootstrap-css' href='/wp-content/themes/porto/assets/vendor/bootstrap/css/bootstrap.css?ver=3.9.1' type='text/css' media='all' />

    with

    <link rel='stylesheet' id='bootstrap-css' href='http://dktrafik.dk/wp-content/themes/porto/assets/vendor/bootstrap/css/bootstrap.css?ver=3.9.1' type='text/css' media='all' />

    ?

    Wouldn't think that would make a difference but maybe that's not what you mean?

    Best regards :)
    Rasmus

  7. Emre Vona
    Member
    Plugin Author

    Posted 7 months ago #

    yes you understood correct :) There is need to write full url.

  8. rassom
    Member
    Posted 7 months ago #

    It's a theme I have bought that "creates" the URLs so I cannot change myself without changing the theme/breaking upgrades of it. Maybe you could/would change your plugin so it rewrite the URL if the domain is not listed in it? Would be a great help/feature :)

    Thanks :-)

  9. Emre Vona
    Member
    Plugin Author

    Posted 7 months ago #

    yes :) ok I will fix and inform you

  10. rassom
    Member
    Posted 7 months ago #

    Great stuff! Thanks :) Am sure other plugin users will be happy about it as most probably use a WordPress theme :)

    Thanks again! :-))

  11. Emre Vona
    Member
    Plugin Author

    Posted 7 months ago #

    Hi rassom again, I fixed the issue. Can you do the steps below please?

    - Deactive the cache
    - remove the plugin
    - download and install again
    - delete all cache and minified files

    Can you inform me after doing these steps please?

  12. Emre Vona
    Member
    Plugin Author

    Posted 7 months ago #

    ???

  13. rassom
    Member
    Posted 7 months ago #

    Sorry for the late feedback- I still don't get notifications when you answer me, so will check manually each day from now on.

    Thank you for so prompt responses and for updating the plugin! :-)

    I did do the steps you wrote but it doesn't seem to have helped :(

    Can you see what I did wrong, if anything? If you want the login to WP-admin for http://www.dktrafik.dk to check things out "behind the scenes", please send me your mail address and I will create a user account for you.

  14. Emre Vona
    Member
    Plugin Author

    Posted 7 months ago #

    here is my mail: fastestcache@gmail.com

  15. rassom
    Member
    Posted 7 months ago #

    Found your e-mail address in another thread - have sent an e-mail with username/password to fastestcache@gmail.com :)

  16. Emre Vona
    Member
    Plugin Author

    Posted 7 months ago #

    it has been fixed

Reply

You must log in to post.

About this Plugin

About this Topic

Tags