From dev-return-3075-archive-asf-public=cust-asf.ponee.io@pagespeed.apache.org Tue Mar 3 21:35:47 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id D006A18063D for ; Tue, 3 Mar 2020 22:35:46 +0100 (CET) Received: (qmail 19936 invoked by uid 500); 3 Mar 2020 21:35:46 -0000 Mailing-List: contact dev-help@pagespeed.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pagespeed.apache.org Delivered-To: mailing list dev@pagespeed.apache.org Received: (qmail 19924 invoked by uid 99); 3 Mar 2020 21:35:46 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2020 21:35:46 +0000 From: GitBox To: dev@pagespeed.apache.org Subject: [GitHub] [incubator-pagespeed-ngx] ws420 edited a comment on issue #1681: Uncacheable content, preventing rewriting of image Message-ID: <158327134615.17401.4088083397036267133.gitbox@gitbox.apache.org> References: In-Reply-To: Date: Tue, 03 Mar 2020 21:35:46 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit ws420 edited a comment on issue #1681: Uncacheable content, preventing rewriting of image URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1681#issuecomment-594181431 > This: > # Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0" > makes all resources uncacheable, so pagespeed can´t optimize it. You need to enable it, but with some like: > Header set Cache-Control "max-age=86400, public" > This make resources cacheable for 1 day, so pagespeed can optimize it and when optimized, it changes to 1 year. We have a lot of dynamic content on the website that needs to be updated every 5 minutes or so (news and live market data). Does this means that everything will be cached for 1 day on the website? We are looking to cache only the images, css, js > I think nginx still working, as far I can see the header x-pagespeed that is set by nginx. > If the working module of pagespeed is in apache server these header must be X-Mod-Pagespeed. I'm confused. I have no idea what's going on. If I disable nginx in Plesk it doesn't work. ![image](https://user-images.githubusercontent.com/48076840/75821430-409b6b80-5d6c-11ea-909f-058544686cb6.png) You would think the settings above would completely disable nginx but instead is seems that it disables apache and runs only on nginx! As soon as I disable the proxy mode, the htaccess stops working and the url rewriting returns 404 errors on all wordpress pages I also tried via the CLI: `plesk bin domain -u weedstreet420.com -nginx-serve-php false` > > Ah! your site is https, so you need to configure fechthttps or loadfromfile. > By default, pagespeed tries to fecht resources by http, and maybe the 404 error´s you see is for don´t have the https enabled. > > ModPagespeedFetchHttps enable We tried enabling FetchHttps but the entire website will return an Internal Server Error as soon as it's enabled ---------------------------------------------------------------- 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: users@infra.apache.org With regards, Apache Git Services