Gzip/Brotli compression with CloudFront doesn't work on URL rewriting?

0

The URL rewriting of each page is set up in .htaccess with Apache.

The URLs look like:

  • https://repost.aws/knowledge-center/cloudfront-troubleshoot-compressed-files
  • https://repost.aws/search/content?globalSearch=cloudfront+compression

CloudFront's compression seems doesn't work on our rewritten URL pages (Content-Type: text/html, but they don't have any filename.ext in the URLs), whether it is Gzip or Brotli.

During repeated testing, I also invalidated the files from edge caches again and again.

To verify whether there is a URL rewriting problem, under the same environment and settings, the .js and .css files can be compressed and Brotli (Content-Encoding: br) is automatically used.

Does anyone have any successful experience with using CloudFront's compression on web pages that have had URLs rewritten?

질문됨 2달 전105회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인