Skip to content

조회 수 11893 추천 수 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. (간단한 팁) 우분투에 Apache2 설치하기 ( apt-get )

    Date2012.04.01 By로키 Views17604
    Read More
  2. *** glibc detected *** double free or corruption (!pre...

    Date2010.05.03 ByADMINPLAY Views26743
    Read More
  3. 64bit 시스템에 ssl 설치 후 실행 시 X509_free 오류

    Date2008.10.07 ByADMINPLAY Views15507
    Read More
  4. Address already in use: make_sock:could not bind to ad...

    Date2009.01.10 ByADMINPLAY Views23798
    Read More
  5. apache + oracle (오라클 DB 한글깨짐)

    Date2010.02.24 ByADMINPLAY Views19594
    Read More
  6. Apache - 도메인 포워딩

    Date2010.08.26 ByADMINPLAY Views18807
    Read More
  7. Apache 1.3.12 httpd.conf 파일 한글설명

    Date2009.03.04 ByADMINPLAY Views13361
    Read More
  8. apache 2.0.x , 2.2.x 버전대 max client 값 수정시

    Date2008.10.08 ByADMINPLAY Views14799
    Read More
  9. Apache 2.2.17 (mod_url 하고 mod_rewrite 충돌)

    Date2011.08.18 ByADMINPLAY Views20396
    Read More
  10. Apache 2.2.21 패치 (mod_proxy_ajp 패치와 apache killer...

    Date2012.01.16 ByADMINPLAY Views19641
    Read More
  11. apache cronolog를 이용한 Apache Log File 날짜 별로 생...

    Date2012.01.16 ByADMINPLAY Views23506
    Read More
  12. Apache expires 설정으로 브라우저 캐시

    Date2013.03.18 Byl2zeo Views11893
    Read More
  13. apache log 정리

    Date2008.12.14 ByADMINPLAY Views13527
    Read More
  14. apache log에 그림이미지 파일 로그 안남기기

    Date2009.11.26 ByADMINPLAY Views14666
    Read More
  15. Apache Make시 /usr/lib/libexpat.so: could not read sym...

    Date2009.08.07 ByADMINPLAY Views17943
    Read More
  16. Apache mod_deflate

    Date2012.01.16 ByADMINPLAY Views23387
    Read More
  17. apache server 2.2, Tomcat5.5 로드밸런싱 및 클러스터

    Date2009.12.10 ByADMINPLAY Views19120
    Read More
  18. Apache Worker 방식의 이해 및 설정법

    Date2012.01.16 ByADMINPLAY Views16955
    Read More
  19. Apache 로그레벨의 종류

    Date2012.01.16 ByADMINPLAY Views20844
    Read More
  20. Apache 버전확인

    Date2008.12.23 ByADMINPLAY Views15428
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234