웹사이트 성능 개선을 위한 gzip 압축. > 공지사항

본문 바로가기
사이트 내 전체검색

공지사항

웹사이트 성능 개선을 위한 gzip 압축.

페이지 정보

본문

음..

해당 설정을 적용해야 할지 고민중에 있다.

사용자가 많은 사이트내 gzip compress 압축 설정을 하면 효과가 있을지 모르나..

과연..

방문자가 작은 소규모 사이트에..

[lighttpd 설정방법]

- Compression -

server.modules  = (
                    # Your modules here ..
                    "mod_compress",
                    # Your modules here ..
                  )
#### compress module
compress.allowed-encodings = ("gzip", "deflate")
compress.filetype          = ("text/plain", "text/html", "text/javascript", "text/css", "text/xml" )
# You must create this directory.
compress.cache-dir = "/srv/cache"

- Client Caching -

server.modules  = (
                    # Put mod_access first.
                    "mod_access",
                    # Your modules here ..
                  )
# Cache based on suffix
$HTTP["url"] =~ "\.(jpg|gif|png|css|js)$" {
    expire.url = ( "" => "access plus 2 months" )
}
# Cache based on path
expire.url = ( "/fonts/" => "access plus 2 months",
              "/i/"    => "access plus 2 months",
              "/media/" => "access plus 2 months",
            )

댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

사이트 정보

회사명 : 회사명 / 대표 : 대표자명
주소 : OO도 OO시 OO구 OO동 123-45
사업자 등록번호 : 123-45-67890
전화 : 02-123-4567 팩스 : 02-123-4568
통신판매업신고번호 : 제 OO구 - 123호
개인정보관리책임자 : 정보책임자명

접속자집계

오늘
55
어제
92
최대
386
전체
17,315
Copyright © mjhxt0.iptime.org All rights reserved.