Skip to content

조회 수 11891 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

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

httpd.conf 에 간단히

ExpiresActive On
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"
ExpiresByType text/css "access plus 1 month"

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"

요렇게 해 주면 js, css, images 는 브라우저 캐시를 이용하게 됩니다.

그러면 한번 불러온 저 파일들은 뒤로,앞으로 이동시에 다시 불러오지 않습니다.
오직 새로고침시에만 다시 불러옵니다.

License : Public Domain

출처 :: http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=tipntech&wr_id=56733


Invalid command 'ExpiresActive', perhaps mis-spelled or defined by a module not included in the server configuration

위와 같은 에러 출력시 LoadModule expires_module modules/mod_expires.so


--- 관련 문서

http://www.apache-kr.org/www/apacheTechnical.php?cmd=technicalView&rg_d=20070705&rg_seq_n=1

http://www.jonasjohn.de/snippets/php/caching.htm


http://nedmartin.org/site/caching


http://larve.net/2006/08/php-http-caching/doc/classHttpCaching.html#_details


http://www.zend.com/zend/spotlight/dynamic-pages.php


  1. APM설치 후 80포트가 연결이 안되요....ㅜㅜ

    Date2013.02.14 Bykimbongsoo Views9801
    Read More
  2. apache 설치시 에러 발생 collect2: ld returned 1 exit s...

    Date2013.03.12 ByADMINPLAY Views9809
    Read More
  3. Apache expires 설정으로 브라우저 캐시

    Date2013.03.18 Byl2zeo Views11891
    Read More
  4. tomcat 에서 OutOfMemory에러가 발생할때

    Date2013.09.09 ByADMINPLAY Views8765
    Read More
  5. SetEnvIf 지시어 설명 (mod_setenvif)

    Date2014.01.18 ByADMINPLAY Views7383
    Read More
  6. WAS 란? WAS 뭐에요?

    Date2014.01.19 ByADMINPLAY Views10961
    Read More
  7. CentOS 5.X 에 MRTG설치 할때 한글 문제

    Date2014.06.06 ByADMINPLAY Views6874
    Read More
  8. [Apache] 2.4 버전에서 403 에러시 [authz_core:error AH0...

    Date2015.01.09 ByADMINPLAY Views7276
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234