Join the community today
Become a Member

Nginx Does Nginx/NginxPagespeed check existence of files before minifying?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by jeffwidman, Feb 17, 2015.

Tags:
  1. jeffwidman

    jeffwidman Active Member

    152
    27
    28
    Dec 3, 2014
    Ratings:
    +51
    Local Time:
    6:41 AM
    I haven't installed the 2.0 version of the Digital Point analytics addon because a lot of folks have been reporting issues.

    I saw these posts: Better Analytics | Page 13 | XenForo Community

    Looks like many (but not all) of the issues can be traced to Nginx on-the-fly-minification messing with file paths.

    Is Centminmod's Nginx conf (or the pagespeed mod) cause these problems? Does it attempt to minify without checking for the existence of files?


    I haven't installed to doublecheck because I figured @eva2000 would know the answer off the top of his head.
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    12:41 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    nginx doesn't minify by default (what Stuart reported as his own code/configuration for js file minification which isn't present in Centmin Mod Nginx)

    nginx pagespeed (which can minify on the fly) isn't enabled by default in Centmin Mod so it shouldn't be a problem.. i haven't tried Better Analytics 2.0 as saw those issues folks are reporting

    seems v2.0 Shawn has wrapped all the GA code etc into a.js unlike in previous versions. I'm sticking to pre-2.0 version for now :)
     
  3. jeffwidman

    jeffwidman Active Member

    152
    27
    28
    Dec 3, 2014
    Ratings:
    +51
    Local Time:
    6:41 AM
    He just released 2.0.1 which gives you an option to determine how to serve the JS file--inline vs others. IE, it lets you run pagespeed mod with no conflicts with Google Analytics JS file.
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    12:41 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yeah saw that update.. your first :D