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포트가 연결이 안되요....ㅜㅜ

  2. No Image 12Mar
    by ADMINPLAY
    2013/03/12 by ADMINPLAY
    Views 9809 

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

  3. No Image 18Mar
    by l2zeo
    2013/03/18 by l2zeo
    Views 11891 

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

  4. No Image 09Sep
    by ADMINPLAY
    2013/09/09 by ADMINPLAY
    Views 8765 

    tomcat 에서 OutOfMemory에러가 발생할때

  5. No Image 18Jan
    by ADMINPLAY
    2014/01/18 by ADMINPLAY
    Views 7383 

    SetEnvIf 지시어 설명 (mod_setenvif)

  6. WAS 란? WAS 뭐에요?

  7. No Image 06Jun
    by ADMINPLAY
    2014/06/06 by ADMINPLAY
    Views 6874 

    CentOS 5.X 에 MRTG설치 할때 한글 문제

  8. No Image 09Jan
    by ADMINPLAY
    2015/01/09 by ADMINPLAY
    Views 7276 

    [Apache] 2.4 버전에서 403 에러시 [authz_core:error AH01630: client denied by server configuration]

Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234