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

Who's l2zeo

profile

I see no changes, wake up in the morning and I ask myself

Is life worth living should I blast myself

Things would never be the same.


List of Articles
번호 제목 글쓴이 날짜 조회 수
28 apache server 2.2, Tomcat5.5 로드밸런싱 및 클러스터 ADMINPLAY 2009.12.10 19119
27 아파치 컴파일 에러(apr-util) configure: error: cannet ... ADMINPLAY 2009.08.08 19574
26 apache + oracle (오라클 DB 한글깨짐) ADMINPLAY 2010.02.24 19594
25 [Apache] MPM(Prefork VS Worker) ADMINPLAY 2012.01.16 19639
24 Apache 2.2.21 패치 (mod_proxy_ajp 패치와 apache killer... ADMINPLAY 2012.01.16 19641
23 KeepAlive 설정 및 정의 ADMINPLAY 2012.01.16 19891
22 트래픽분석툴(mod_throttle) 설치 및 설정 - apache1.3.x ... file ADMINPLAY 2010.05.03 20019
21 Apache 2.2.17 (mod_url 하고 mod_rewrite 충돌) file ADMINPLAY 2011.08.18 20396
20 리눅스 개인계정 로딩시 틸드(~)기호없이 그냥 사용 ADMINPLAY 2010.09.22 20684
19 APM + Snort + ADODB + BASE + oinkmaster 설치 l2zeo 2010.05.29 20816
18 Apache 로그레벨의 종류 ADMINPLAY 2012.01.16 20844
17 아파치에서 멀티도메인 설정 방법 1 l2zeo 2012.10.09 20974
16 [LINUX] Apache 2.2 + mod jk 1.2 + Tomcat 5.x 연동 ADMINPLAY 2009.05.07 21037
15 apache 외부링크 차단 ADMINPLAY 2010.08.31 21221
14 mod_deflate 설정 ADMINPLAY 2011.03.18 21236
13 Apache: client denied by server configuration ADMINPLAY 2010.10.25 21665
12 Unclean shutdown of previous Apache run? ADMINPLAY 2009.08.05 21795
11 APM 기본설치후 아파치 실행에러 httpd: Could not determ... ADMINPLAY 2009.08.08 21875
10 apache, tomcat 가상디렉토리 설정 file ADMINPLAY 2010.09.17 23003
9 Apache mod_deflate ADMINPLAY 2012.01.16 23387
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234