Skip to content

Commit

Permalink
add pagespeed module
Browse files Browse the repository at this point in the history
  • Loading branch information
jasm1nii committed Dec 15, 2023
1 parent 342b04e commit 5002680
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions public_html/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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

<IfModule mod_brotli.c>
Expand Down

0 comments on commit 5002680

Please sign in to comment.