Lofesa commented on issue #1755:
URL: 
https://github.com/apache/incubator-pagespeed-ngx/issues/1755#issuecomment-1335673646

   >> smartslider is excluded from pagespeed because of the compatibility 
issues, I have done it via:
   >>
   >>        # disable minify etc...
    >>       pagespeed Allow "*";
   
   
   A bunch of things here.
   
           pagespeed Disallow "*.svg*";
           pagespeed Disallow "*.php*";
   Not needed, because pahespeed mudules does nothing with these files.
   
           pagespeed Allow "*.js*";
           pagespeed Allow "*.js?ver=*";
           pagespeed Allow "*.css*";
           pagespeed Allow "*.css?ver=*";
   
   Those with "ver=" are not needed because they are covered with "*.js*"; and 
"*.css*";
   And the ? character must be scaped if used, in the regex , iy matches 1 
character.
   
   Deom the docs:
   
   "Note: Wildcards include * which matches any 0 or more characters, and ?, 
which matches exactly one character. Unlike Unix shells, the / directory 
separator is not special, and can be matched by either * or ?. The resources 
are always expanded into their absolute form before expanding.
   
   Note: The wildcard will be matched against the full URL including any query 
parameters. For example, if you want to match URL 
http://example.com/index.jsp?test=xyz you could use"
   
   And take care with the order of these directives, order matter
   
   "The later directives take priority over the earlier ones"
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@pagespeed.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to