• Hi i added expire header through your plugin when i checked it on gtmetrix it’s working but after one it stopped working after some changes and I’m getting different results in home page and post page my website newsa2.com and post link newsa2.com/hello-world/
    And it’s showing this problem

    https://fonts.googleapis.com/css?family=Open+Sans%3A400%2C300&ver=4.7
    https://fonts.googleapis.com/css?family=Noto+Sans:700|Noto+Sans:normal
    https://www.google-analytics.com/analytics.js
    https://newsa2.com/wp-content/themes/clock/images/nobg.png
    https://connect.facebook.net/en_US/all.js#xfbml=1
    https://apis.google.com/js/plusone.js
    https://platform.twitter.com/widgets.js
    https://platform.linkedin.com/in.js
    https://assets.pinterest.com/js/pinit.js
    https://0.gravatar.com/avatar/9e0075c1b427c2d7e49009ae6b7c3e78?s=100&d=mm&r=g
    https://1.gravatar.com/avatar/d7a973c7dab26985da5f961be7b74480?s=50&d=mm&r=g
    https://newsa2.com/wp-content/uploads/2016/12/manager_1482322389-50x42.jpg
    https://platform.linkedin.com/js/secureAnonymousFramework?v=0.0.2000-RC8.59485-1429&
    https://assets.pinterest.com/js/pinit_main.js?0.8930257634157885
    https://www.facebook.com/impression.php/f9d399de57865a/?lid=115&payload=%7B%22source%22%3A%22jssdk%22%7D
    https://widgets.pinterest.com/v1/urls/count.json?url=http%3A%2F%2Fnewsa2.com%2Fhello-world%2F&callback=PIN_1482496969265.f.callback[0]
    https://apis.google.com/js/rpc:shindig_random.js?onload=init
    https://syndication.twitter.com/i/jot?l=%7B%22widget_origin%22%3A%22http%3A%2F%2Fnewsa2.com%2Fhello-world%2F%22%2C%22widget_frame%22%3Afalse%2C%22language%22%3A%22en%22%2C%22message%22%3A%22m%3Anocount%3A%22%2C%22_category_%22%3A%22tfw_client_event%22%2C%22triggered_on%22%3A1482496970196%2C%22dnt%22%3Afalse%2C%22client_version%22%3A%223354ffc%3A1481052811011%22%2C%22format_version%22%3A1%2C%22event_namespace%22%3A%7B%22client%22%3A%22tfw%22%2C%22page%22%3A%22button%22%2C%22section%22%3A%22share%22%2C%22action%22%3A%22impression%22%7D%7D
Viewing 4 replies - 1 through 4 (of 4 total)
  • I have the same problem on my site
    Can anyone help please?

    W3TC can only alter the headers of assets served from your server.

    Be well,
    AJ

    Thread Starter aunpric

    (@aunpric)

    Hi copy this code and put it in your .htaccess file sometimes gtmetrix can’t detect it so you have to check it manually

    <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 days"
    ExpiresByType image/png "access plus 1 days"
    ExpiresByType image/jpg "access plus 1 days"
    ExpiresByType image/jpeg "access plus 1 days"
    
    # CSS
    ExpiresByType text/css "access 1 year”
    
    # Javascript
    ExpiresByType application/javascript "access plus 1 year"
    
    </IfModule>
    Thread Starter aunpric

    (@aunpric)

    Hope it help and remember that gtmetrix always show problem on Google fonts and fyi you can’t do anything with it unless you host Google font on your own server i read many articles on this

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Expire header Doesn’t working’ is closed to new replies.