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. No Image 17Sep
    by ADMINPLAY
    2010/09/17 by ADMINPLAY
    Views 23003 

    apache, tomcat 가상디렉토리 설정

  2. No Image 11Nov
    by ADMINPLAY
    2008/11/11 by ADMINPLAY
    Views 15769 

    Apache 최적화

  3. Apache 웹페이지 한글깨짐, AddDefaultsCharset 설정

  4. No Image 21Jun
    by ADMINPLAY
    2009/06/21 by ADMINPLAY
    Views 13815 

    Apache 웹서버 MaxClient 최대값 조정을 위한 C & CPP 플래그 변수값

  5. No Image 31Aug
    by ADMINPLAY
    2010/08/31 by ADMINPLAY
    Views 21221 

    apache 외부링크 차단

  6. No Image 30Jul
    by ADMINPLAY
    2012/07/30 by ADMINPLAY
    Views 14405 

    Apache 에서 최대 접속자 수 늘리기

  7. No Image 18Jul
    by ADMINPLAY
    2009/07/18 by ADMINPLAY
    Views 14217 

    apache 에서 euc-kr홈페이지를 포팅할때 화면이안나올경우

  8. No Image 12Mar
    by ADMINPLAY
    2013/03/12 by ADMINPLAY
    Views 9811 

    apache 설치시 에러 발생 collect2: ld returned 1 exit status

  9. No Image 23Dec
    by ADMINPLAY
    2008/12/23 by ADMINPLAY
    Views 15428 

    Apache 버전확인

  10. Apache 로그레벨의 종류

  11. No Image 16Jan
    by ADMINPLAY
    2012/01/16 by ADMINPLAY
    Views 16955 

    Apache Worker 방식의 이해 및 설정법

  12. No Image 10Dec
    by ADMINPLAY
    2009/12/10 by ADMINPLAY
    Views 19120 

    apache server 2.2, Tomcat5.5 로드밸런싱 및 클러스터

  13. No Image 16Jan
    by ADMINPLAY
    2012/01/16 by ADMINPLAY
    Views 23387 

    Apache mod_deflate

  14. No Image 07Aug
    by ADMINPLAY
    2009/08/07 by ADMINPLAY
    Views 17943 

    Apache Make시 /usr/lib/libexpat.so: could not read symbols: File in wrong format 에러

  15. No Image 26Nov
    by ADMINPLAY
    2009/11/26 by ADMINPLAY
    Views 14666 

    apache log에 그림이미지 파일 로그 안남기기

  16. No Image 14Dec
    by ADMINPLAY
    2008/12/14 by ADMINPLAY
    Views 13527 

    apache log 정리

  17. No Image 18Mar
    by l2zeo
    2013/03/18 by l2zeo
    Views 11893 

    Apache expires 설정으로 브라우저 캐시

  18. No Image 16Jan
    by ADMINPLAY
    2012/01/16 by ADMINPLAY
    Views 23506 

    apache cronolog를 이용한 Apache Log File 날짜 별로 생성하는 법

  19. No Image 16Jan
    by ADMINPLAY
    2012/01/16 by ADMINPLAY
    Views 19641 

    Apache 2.2.21 패치 (mod_proxy_ajp 패치와 apache killer 보완) (9월 13일)

  20. No Image 18Aug
    by ADMINPLAY
    2011/08/18 by ADMINPLAY
    Views 20396 

    Apache 2.2.17 (mod_url 하고 mod_rewrite 충돌)

Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234