Skip to content
조회 수 1658 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

[Apache] mod_expires .htaccess을 수정하여 브라우저 캐싱하기


브라우저 캐싱으로 속도 가속화시키기


클라이언트에서 한번 열어본 이미지 등의 파일은 캐시 안함.


years
months
weeks
days
hours
minutes
seconds




#으로 되어있는 부분 없애고 아파치 재시작


httpd.conf

  LoadModule expires_module modules/mod_expires.so   




.htaccess


#<IfModule mod_expires.so>

ExpiresActive on

 

ExpiresDefault                          "access plus 1 month"

 

ExpiresByType text/cache-manifest       "access plus 0 seconds"

ExpiresByType text/html                 "access plus 0 seconds"

ExpiresByType text/xml                  "access plus 0 seconds"

ExpiresByType application/xml           "access plus 0 seconds"

ExpiresByType application/json          "access plus 0 seconds"

 

ExpiresByType application/rss+xml       "access plus 0 seconds"

ExpiresByType application/atom+xml      "access plus 0 seconds"

 

ExpiresByType image/gif                 "access plus 1 month"

ExpiresByType image/png                 "access plus 1 month"

ExpiresByType image/jpg                 "access plus 1 month"

ExpiresByType image/jpeg                "access plus 1 month"

   

ExpiresByType video/ogg                 "access plus 2 month"

ExpiresByType audio/ogg                 "access plus 2 month"

ExpiresByType video/mp4                 "access plus 2 month"

ExpiresByType video/webm                "access plus 2 month"

   

ExpiresByType text/x-component          "access plus 1 year"

ExpiresByType application/x-font-ttf    "access plus 1 year"

ExpiresByType font/opentype             "access plus 1 year"

ExpiresByType application/x-font-woff   "access plus 1 year"

ExpiresByType image/svg+xml             "access plus 1 year"

ExpiresByType application/vnd.ms-fontobject "access plus 1 year"                              

ExpiresByType text/css                  "access plus 1 year"

ExpiresByType application/javascript    "access plus 1 year"

ExpiresByType image/x-icon              "access plus 1 year"

#</IfModule>





## EXPIRES CACHING ##

<IfModule mod_expires.c>

    ExpiresActive On

    ExpiresByType image/jpg "access plus 1 month"

    ExpiresByType image/jpeg "access plus 1 month"

    ExpiresByType image/gif "access plus 1 month"

    ExpiresByType image/png "access plus 1 month"

    ExpiresByType text/css "access plus 1 month"

    ExpiresByType application/pdf "access plus 1 month"

    ExpiresByType text/x-javascript "access plus 1 month"

    ExpiresByType application/x-shockwave-flash "access plus 1 month"

    ExpiresByType image/x-icon "access plus 1 month"

    ExpiresDefault "access plus 1 month"

</IfModule> 





로그인 후 댓글쓰기가 가능합니다.

?

  1. 30
    Apr 2016
    12:26

    서버 부하상태 체크

    CategoryServer Views1709
    Read More
  2. 04
    May 2017
    11:54

    서버 다운시 알람 기능 사용방법(http ping port)

    CategoryServer Views10364
    Read More
  3. 27
    Nov 2016
    14:09

    램드라이브를 이용한 mysql 번개속도로 개선방법

    CategoryServer Views5238
    Read More
  4. 05
    Apr 2017
    22:18

    댓글쓰기 - 스케치북 게시판 로그인 사용자만 댓글쓰기

    CategoryServer Views5159
    Read More
  5. 25
    Mar 2016
    08:58

    [아파치 error.log] Fatal Error Unable to reattach to base address

    CategoryServer Views1643
    Read More
  6. 25
    Aug 2016
    11:32

    [php.ini]XE 신디케이션 OpenSSL 오류문구 해결방법

    CategoryServer Views2816
    Read More
  7. 26
    Nov 2016
    03:03

    [mysql] Created tmp disk tables 디스크 쓰기방지 대안

    CategoryServer Views5162
    Read More
  8. 16
    Mar 2016
    12:18

    [Apache] mod_expires .htaccess을 수정하여 브라우저 캐싱하기

    CategoryServer Views1658
    Read More
  9. 14
    Dec 2016
    20:05

    ZipperUpper! 애드온 이런것이 있었다니?

    CategoryServer Views4606
    Read More
  10. 19
    Sep 2016
    12:37

    XpressEngine 최적화 기진곰님의 슈퍼캐시 테스트

    CategoryServer Views5016
    Read More
  11. 04
    Mar 2016
    09:02

    XE성능 캐시활용으로 속도 100배 개선하기(Varnish 캐시서버 + XE(+패치) + nginx(혹은 아파치) / Wincache)

    CategoryServer Views1449
    Read More
  12. 28
    Jun 2016
    00:37

    xe 타이틀 게시판 이름 없애기

    CategoryServer Views1821
    Read More
  13. 08
    Jul 2015
    08:29

    XE 카카오톡 글전송

    CategoryServer Views1223
    Read More
  14. 13
    Mar 2015
    22:19

    XE 업데이트 후 모듈업데이트가 안될때 참고

    CategoryServer Views1440
    Read More
  15. 07
    Apr 2016
    12:18

    XE 어느날 갑자기 다운로드가 되지 않을때 해결방법

    CategoryServer Views1351
    Read More
  16. 08
    Apr 2016
    08:59

    XE 스케치북 모바일 비회원 댓글쓰기에서 홈페이지 이메일 기입란 삭제하기

    CategoryServer Views2981
    Read More
  17. 05
    Dec 2016
    12:51

    XE 스케치북 게시판 웹진형에서 사진과 요약글 출력방법

    CategoryServer Views5203
    Read More
  18. 14
    Aug 2016
    08:07

    XE 반응형 모바일 메타태그 삽입하기

    CategoryServer Views3687
    Read More
  19. 06
    May 2017
    23:15

    XE 모바일 default 기본스킨 views 값 나타내기

    CategoryServer Views6795
    Read More
  20. 17
    Apr 2016
    10:28

    XE 리퍼러 모듈로 트래픽 발생에 대처방법

    CategoryServer Views1410
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소