• Kramarz

    (@kramarz)


    Hi there,

    First of all love the speed and rankings increase that this plugin gave me.

    One question though, the website I’m testing your plugin is here – https://www.irishrecycledproducts.ie/ – and despite that I can see in .htaccess that there’s this setting – Header set Expires “max-age=2592000, public” – when I run a test through GTmetrix, it tells me on YSlow tab that, quote:

    “There are 82 static components without a far-future expiration date.”

    It even shows that there’s no expiration date on minified css files created by the plugin etc, rest is mostly plugins.

    Sorry, if that’s a noob question, but I’m only starting to play around with caching / minifying plugins, but is that how it should be in those results or something isn’t working yet in plugin?

    Cheers!

    https://www.ads-software.com/plugins/wp-fastest-cache/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Emre Vona

    (@emrevona)

    Hi Kramarz, first of all you can ask every kind of question. Don’t worry about it…

    I tested your site and here’s the result url: https://gtmetrix.com/reports/www.irishrecycledproducts.ie/i5a0oVJB

    Add Expires headers %0
    Make fewer HTTP requests %0
    Use a Content Delivery Network (CDN) %0
    Minify JavaScript and CSS %80

    I couldn’t see a warning as you said.

    Thread Starter Kramarz

    (@kramarz)

    Hi Emre, click on the YSlow tab in the report you linked ??

    You’ll notice in first line:

    ‘Add Expires headers’ – grade F(0)
    ‘There are 58 static components without a far-future expiration date.’

    Also, I tried this plugin on one of the other websites, and seems it wasn’t able to handle minifying css the right way, the links to images in it were like:

    ../../../images/logo.png instead of just ../images/logo.png

    You may want to look at that.

    Plugin Author Emre Vona

    (@emrevona)

    aa yes yes ?? you are right. I will fix and inform you

    Hi There,

    great plugin

    Did you found the solution? I have similar problem, suspect that has to do something with MIME types?

    Regards
    Dragomir

    Plugin Author Emre Vona

    (@emrevona)

    You can fix it the code below if you have cPanel or Plest Panel. If you don’t have cPanel or Plest Panel mod_expires.c does not work.

    <IfModule mod_expires.c>
    # Enable expirations
    ExpiresActive On
    # Default directive
    ExpiresDefault “access plus 1 month”
    # My favicon
    ExpiresByType image/x-icon “access plus 1 year”
    # Images
    ExpiresByType image/gif “access plus 1 month”
    ExpiresByType image/png “access plus 1 month”
    ExpiresByType image/jpg “access plus 1 month”
    ExpiresByType image/jpeg “access plus 1 month”
    # CSS
    ExpiresByType text/css “access 1 month”
    # Javascript
    ExpiresByType application/javascript “access plus 1 year”
    </IfModule>

    Do we need trough htaccess to change mode expires.so with this one you provided?

    Thanks for fast response
    Dragomir

    Plugin Author Emre Vona

    (@emrevona)

    yes yes. You can convert mode expires.so to mode expires.co

    Yes,

    I was advised to do that from hostgator where I’ve hosting site. Anyway nothing dramatic changed after replacing code. Tried to delete cache as well but yslow is still 0 for add expires headers…

    Plugin Author Emre Vona

    (@emrevona)

    can you write me your url please?

    christianmoney dot com

    Plugin Author Emre Vona

    (@emrevona)

    you use hostgator too ?? actually hostgator handles it. but I will work on it and inform you.

    OK

    Thanks and again great support! Just keep on good work

    Plugin Author Emre Vona

    (@emrevona)

    St.Dragomir, I have written to your wrong ?? I am so sorry. Not “mode expires.co”. The true one is “mode expires.c”

    Should be like that;

    <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 “access plus 1 month”
    ExpiresByType image/x-icon “access plus 1 year”
    ExpiresByType image/gif “access plus 1 month”
    ExpiresByType image/png “access plus 1 month”
    ExpiresByType image/jpg “access plus 1 month”
    ExpiresByType image/jpeg “access plus 1 month”
    ExpiresByType text/css “access 1 month”
    ExpiresByType application/javascript “access plus 1 year”
    </IfModule>
    <IfModule mod_headers.c>
    Header set Expires “max-age=2592000, public”
    Header unset ETag
    </IfModule>
    FileETag None
    </FilesMatch>

    Thanks, I have seen that mispel and changed it straight away.
    Any way still expires headers are 0 points. I am testing various approaches in .htaccess (Maybe something with mime…) and if I find what is wrong here I will let you know.

    Thanks again!
    Dragomir

    Hi,

    No progress by my side. Did you find out what is the issue with expires headers?

    Regards
    Dragomir

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Expired Headers clarification needed’ is closed to new replies.