Welcome to Centmin Mod Community
Register Now

Nginx How to add nginx header vary accept-encoding for all static content?

Discussion in 'Centmin Mod Insights' started by rdan, Sep 8, 2014.

  1. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    6:20 AM
    Mainline
    10.2
    On Gtmetrix, I got this advice:

     
  2. eva2000

    eva2000 Administrator Staff Member

    40,625
    9,017
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,884
    Local Time:
    8:20 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    if it's related to 3rd party content you can't

    and for some local content, if you have ngx_pagespeed enabled it will remove that header for some reason.
     
  3. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    6:20 AM
    Mainline
    10.2
    This is my local content:
    upload_2014-9-8_21-36-37.png

    Don't know why doesn't have that header.
     
    style="display:inline-block;min-width:400px;max-width:970px;width:95%;height:90px" data-ad-client="ca-pub-6669518204467592" data-ad-slot="4024536743" data-ad-format="auto">
  4. eva2000

    eva2000 Administrator Staff Member

    40,625
    9,017
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,884
    Local Time:
    8:20 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    run GTmetrix a few times, ngx_pagespeed will usually take care of your local static files for such after a few runs AFAIK