모든 페이지, CSS 및 JavaScript가 gzip을 통해 전송되도록 Apache 구성에서 검색 할 수있는 설정이 있습니까?
그들은 운영 체제마다 다른 위치에 있습니까 (그렇다면 데비안을 실행하고 있습니다).
내 httpd.conf에 다음을 넣고 작동하는 것 같습니다.
# 20100709 added etag code
FileETag MTime Size
# 20100709 added compression START
# Insert filter
SetOutputFilter DEFLATE
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won't work. You can use the following
# workaround to get the desired effect:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
# 20100709 added compression END
이 웹 사이트에는 귀하의 페이지가 GZIP인지 확인하기위한 훌륭한 테스터가 있습니다 : http://www.whatsmyip.org/http_compression/
Firefox에 ySlow를 설치하면 어떤 항목이 압축되어 있는지 알려줍니다.
캐시 가능성 엔진의 후속 버전 인 RedBot 는 간단하고 읽기 쉬운 그리드 형식으로 여러 성능 및 캐시 가능성 메트릭에 대한 페이지 및 내용을 테스트하는 작업을 훌륭하게 수행합니다.
예 : http://redbot.org/?descend=True&uri=http://www.Microsoft.com/en/us/default.aspx