[GitHub] [incubator-pagespeed-mod] Lofesa edited a comment on issue #1986: Uncacheable content, preventing rewriting of...
Lofesa edited a comment on issue #1986: Uncacheable content, preventing rewriting of... URL: https://github.com/apache/incubator-pagespeed-mod/issues/1986#issuecomment-605604866 Not bother at all. These directives are wrong: ``` ModPagespeedSslCertDirectory /etc/letsencrypt/live/domain.com ModPagespeedSslCertFile cert.pem ``` The certificates you need here are NOT the let´s encrypt certificates you are using in your site. Thing in a browser, when you take a look at the certificates you can see a lot of "upper" level certificates, these are from the CA sites. Rigth? These CA certificates are needed for validate the let´s encrypt cert that you use in your site. Rigth? Well, pagespeed module uses a headless browser (called Serf, you can see this word in your logs as a User agent text) so these browser need to have CA certificates to validate the let`s encrypt. I can see you use both directives, so I may think you use a redhat-centos linux distro, so the rigth directives are: ``` ModPagespeedSslCertDirectory /etc/pki/tls/certs ModPagespeedSslCertFile /etc/pki/tls/cert.pem ``` If the site respond to https request you don´t need to rewrite the domain. For SEO purposes you need some apache rewrite rules to redirect http to https, some like: ``` RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R=301,L] ``` In this way your site only do https request 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [incubator-pagespeed-mod] Lofesa edited a comment on issue #1986: Uncacheable content, preventing rewriting of...
Lofesa edited a comment on issue #1986: Uncacheable content, preventing rewriting of... URL: https://github.com/apache/incubator-pagespeed-mod/issues/1986#issuecomment-603723162 Hi @nicolauria Where have you set the config parameters? Seems like the assets don´t go through the pagespeed `module. Can you post your config? Anonimized, off course EDIT: What rewrite rules have you set? EDIT2: I found you have set the header `Vary: Cookie`, this header prevent caching 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [incubator-pagespeed-mod] Lofesa edited a comment on issue #1986: Uncacheable content, preventing rewriting of...
Lofesa edited a comment on issue #1986: Uncacheable content, preventing rewriting of... URL: https://github.com/apache/incubator-pagespeed-mod/issues/1986#issuecomment-603723162 Hi @nicolauria Where have you set the config parameters? Seems like the assets don´t go through the pagespeed `module. Can you post your config? Anonimized, off course EDIT: What rewrite rules have you set? 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [incubator-pagespeed-mod] Lofesa edited a comment on issue #1986: Uncacheable content, preventing rewriting of...
Lofesa edited a comment on issue #1986: Uncacheable content, preventing rewriting of... URL: https://github.com/apache/incubator-pagespeed-mod/issues/1986#issuecomment-603186377 Hi... This issue is not related to any cache. Uncacheable content is related to the http headers cache-control, this header must permit the asset be cached brownser side. Pagespeed need to work these resources referenced in the html code get public cacheable, some like cache-control: max-age=604800,public Pagespeed need some hits to work, if you put a cache in front of the web (like varnish), this cache stores the 1st hit, and serves it witout fechting the background server, so resources get not optimized. This kind of thing need other config you can see here: https://www.modpagespeed.com/doc/downstream-caching. When you says you hable enabled caching in the htaccess.conf what do you mean? EDIT: I´m unable to get debug messages when /PaageSpeed=+debug is used. 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [incubator-pagespeed-mod] Lofesa edited a comment on issue #1986: Uncacheable content, preventing rewriting of...
Lofesa edited a comment on issue #1986: Uncacheable content, preventing rewriting of... URL: https://github.com/apache/incubator-pagespeed-mod/issues/1986#issuecomment-603186377 Hi... This issue is not related to any cache. Uncacheable content is related to the http headers cache-control, this header must permit the asset be cached brownser side. Pagespeed need to work these resources referenced in the html code get public cacheable, some like cache-control: max-age=604800,public Pagespeed need somo hits to work, if you put a cache in front of the web (like varnish), this cache stores the 1st hit, and serves it witout fechting the background server, so resources get not optimized. This kind of thing need other config you can see here: https://www.modpagespeed.com/doc/downstream-caching. When you says you hable enabled caching in the htaccess.conf what do you mean? 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [incubator-pagespeed-mod] Lofesa edited a comment on issue #1986: Uncacheable content, preventing rewriting of...
Lofesa edited a comment on issue #1986: Uncacheable content, preventing rewriting of... URL: https://github.com/apache/incubator-pagespeed-mod/issues/1986#issuecomment-603186377 Hi... This issue is not related to any cache. Uncacheable content is related to the http headers cache-control, this header must permit the asset be cached brownser side. Pagespeed need to work these resources referenced in the html code get public cacheable, some like cache-control: max-age=604800,public Pagespeed need some hits to work, if you put a cache in front of the web (like varnish), this cache stores the 1st hit, and serves it witout fechting the background server, so resources get not optimized. This kind of thing need other config you can see here: https://www.modpagespeed.com/doc/downstream-caching. When you says you hable enabled caching in the htaccess.conf what do you mean? 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services