From dev-return-3068-archive-asf-public=cust-asf.ponee.io@pagespeed.apache.org Tue Mar 3 11:46:58 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 600BC18063D for ; Tue, 3 Mar 2020 12:46:58 +0100 (CET) Received: (qmail 2191 invoked by uid 500); 3 Mar 2020 11:46:57 -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 2175 invoked by uid 99); 3 Mar 2020 11:46:57 -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 11:46:57 +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: <158323601763.5329.18195071017752214135.gitbox@gitbox.apache.org> References: In-Reply-To: Date: Tue, 03 Mar 2020 11:46:57 -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-593888538 I also had the problem with the infinite loop but ModPagespeedSupportNoScriptEnabled fixed it. I also purged Cloudflare cache Here's the settings in Cloudflare (dev mode) ![image](https://user-images.githubusercontent.com/48076840/75767438-d2758b00-5d10-11ea-834d-c08ab56acff8.png) in Plesk ![image](https://user-images.githubusercontent.com/48076840/75767517-f2a54a00-5d10-11ea-8390-7e9cc66637c5.png) Directives ![image](https://user-images.githubusercontent.com/48076840/75767623-1f596180-5d11-11ea-89e9-4c541b537471.png) htaccess ``` Modpagespeed On ModPagespeedEnableFilters rewrite_css ModPagespeedEnableFilters combine_css ModPagespeedEnableFilters recompress_images ModPagespeedEnableFilters convert_png_to_jpeg ModPagespeedEnableFilters convert_jpeg_to_webp #ModPagespeedEnableFilters convert_jpeg_to_progressive ModPagespeedEnableFilters convert_to_webp_lossless ModPagespeedEnableFilters recompress_webp ModPagespeedEnableFilters lazyload_images ModPagespeedEnableFilters collapse_whitespace ModPagespeedEnableFilters remove_comments ModPagespeedEnableFilters extend_cache ModPagespeedEnableFilters make_google_analytics_async ModPagespeedEnableFilters rewrite_javascript # ModPagespeedEnableFilters combine_javascript # ModPagespeedEnableFilters defer_javascript # BEGIN WordPress # The directives (lines) between `BEGIN WordPress` and `END WordPress` are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress # Wordfence WAF Require all denied Order deny,allow Deny from all # END Wordfence WAF ExpiresActive On # Images ExpiresByType image/jpeg "access plus 1 year" ExpiresByType image/gif "access plus 1 year" ExpiresByType image/png "access plus 1 year" ExpiresByType image/webp "access plus 1 year" ExpiresByType image/svg+xml "access plus 1 year" ExpiresByType image/x-icon "access plus 1 year" # Video ExpiresByType video/mp4 "access plus 1 year" ExpiresByType video/mpeg "access plus 1 year" # CSS, JavaScript ExpiresByType text/css "access plus 1 month" ExpiresByType text/javascript "access plus 1 month" ExpiresByType application/javascript "access plus 1 month" # Others ExpiresByType application/pdf "access plus 1 month" ExpiresByType application/x-shockwave-flash "access plus 1 month" # Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0" RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) wp/$2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ wp/$2 [L] RewriteRule . index.php [L] RewriteRule ^/sw.js$ ``` I think there's something wrong with the htaccess so I commented out this part: `# Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0"` Now the error is "4xx status code, preventing rewriting" and the website is broken because images and other resources are returning 404 errors At least I see some webp rewriting in the source code now, so we are making some progress! Thanks for your help Edit: I tried adding ModPagespeedFetchHttps enable but I get an Internal Server Error. I had to disable pagespeed temporarily for now because the entire website was broken due to 404s ---------------------------------------------------------------- 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