From 500268067debc390a34e5092b36b9566d2dee377 Mon Sep 17 00:00:00 2001 From: Jasmine Amalia <67263692+jasm1nii@users.noreply.github.com> Date: Fri, 15 Dec 2023 16:53:00 +0700 Subject: [PATCH] add pagespeed module --- public_html/.htaccess | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public_html/.htaccess b/public_html/.htaccess index f5115ecf..98253aa5 100644 --- a/public_html/.htaccess +++ b/public_html/.htaccess @@ -31,6 +31,12 @@ RewriteRule .* - [F] RewriteBase / RewriteRule ^.well-known/(host-meta|webfinger).* https://fed.brid.gy/$0 [redirect=302,last] +ModPageSpeed on +AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html +ModPagespeedPreserveUrlRelativity on +ModPagespeedRewriteLevel PassThrough +ModPagespeedEnableFilters hint_preload_subresources,insert_dns_prefetch,collapse_whitespace,remove_comments,rewrite_javascript,rewrite_css,convert_to_webp_lossless,convert_to_webp_animated + # ref: https://bytepursuits.com/apache-enabling-brotli-compression-with-gzip-deflate-fallback