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. 05
    Jun 2021
    23:13

    파이썬 한우정액 정보 스프레드로 추출하기

    Category컴퓨터잡담 Views1625
    Read More
  2. 25
    Mar 2016
    08:58

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

    CategoryServer Views1643
    Read More
  3. 27
    Jan 2015
    07:33

    IE 익스플로러 메뉴 바탕이 검정색으로 변했을경우 대처방법

    CategoryWindowsTip Views1644
    Read More
  4. 19
    Aug 2016
    15:10

    XE file cache 활용

    CategoryServer Views1648
    Read More
  5. 16
    Mar 2016
    12:18

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

    CategoryServer Views1658
    Read More
  6. 23
    Dec 2014
    18:09

    익스플로러 ftp 정상화 시키기

    CategoryWindowsTip Views1660
    Read More
  7. 10
    Mar 2023
    10:14

    스프레드시트의 값의 변화에 따라 지메일로 메일을 보내는 스크립트

    Category[Docs]스프레드시트 Views1661
    Read More
  8. 22
    Jun 2021
    08:01

    파이썬 리스트에 데이터 삽입하기

    Category컴퓨터잡담 Views1707
    Read More
  9. 30
    Apr 2016
    12:26

    서버 부하상태 체크

    CategoryServer Views1709
    Read More
  10. 06
    Sep 2021
    13:34

    키움증권 OpenAPI 당황스러움

    Category파이썬 Views1749
    Read More
  11. 11
    Feb 2015
    14:39

    윈도우 XP SP3 와 Windows 8.1 두가지 부팅 메뉴얼

    CategoryWindowsTip Views1768
    Read More
  12. 08
    Jan 2015
    23:26

    컴퓨터가 많이 느리다면?

    CategoryWindowsTip Views1777
    Read More
  13. 31
    May 2021
    00:08

    파이썬 사이트 정보 가져와서 필요한 내용 추출하기

    Category컴퓨터잡담 Views1779
    Read More
  14. 08
    Jul 2021
    12:08

    KM Wakeup 절전모드 예약 및 깨우는 프로그램

    Category컴퓨터잡담 Views1782
    Read More
  15. 06
    Sep 2016
    20:32

    Apache에 대한 mod_proxy 지원 구성

    CategoryServer Views1801
    Read More
  16. 28
    Jun 2016
    00:37

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

    CategoryServer Views1803
    Read More
  17. 09
    Mar 2023
    09:59

    스프레드시트에서 수정, 삭제 버튼 만들기

    Category[Docs]스프레드시트 Views1821
    Read More
  18. 27
    Dec 2014
    08:59

    윈도우 빠른종료 팁

    CategoryWindowsTip Views1823
    Read More
  19. 02
    Jun 2021
    14:05

    파이썬 웹페이지 기업정보 추출하기

    Category컴퓨터잡담 Views1823
    Read More
  20. 22
    Jan 2015
    13:07

    usb 쓰기가 금지되어 있습니다 해제방법

    CategoryWindowsTip Views1827
    Read More
Board Pagination Prev 1 2 3 4 5 6 ... 46 Next
/ 46

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


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

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

설치 취소