Skip to content

조회 수 11894 추천 수 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 expires설정으로 브라우저캐시 ADMINPLAY 2009.04.18 14662
27 아파치 웹서버 사용 시 무단 링크 방지법 ADMINPLAY 2009.04.03 15592
26 xcache 설치 (xcache-1.2.2.tar.gz) file ADMINPLAY 2009.03.17 18362
25 아파치웹서버 모니터링하기 file ADMINPLAY 2009.03.17 16476
24 초간단 웹 페이지 로딩시간 체크법 ADMINPLAY 2009.03.17 15350
23 아파치에서 한글 파일 읽기 [mod_url 설치] file ADMINPLAY 2009.03.17 17297
22 웹 사이트 속도측정 file ADMINPLAY 2009.03.04 16462
21 Apache 1.3.12 httpd.conf 파일 한글설명 ADMINPLAY 2009.03.04 13361
20 리눅스 APM 소스설치시 에러에 대한 대처 1 ADMINPLAY 2009.01.30 15132
19 RedirectMatch (도메인포워딩) ADMINPLAY 2009.01.23 15435
18 아파치 2.X 버전에서 mod_cband를 이용한 트래픽관리 file ADMINPLAY 2009.01.17 19028
17 CGI 퍼미션 으로 웹페이지 열리지 않음 ADMINPLAY 2009.01.12 14674
16 Address already in use: make_sock:could not bind to ad... ADMINPLAY 2009.01.10 23798
15 Apache 웹페이지 한글깨짐, AddDefaultsCharset 설정 file ADMINPLAY 2009.01.03 30520
14 웹페이지에서 한글이 깨지는 현상 막기 ADMINPLAY 2009.01.03 16528
13 AWSTATS 국가별 사용자 분석 ADMINPLAY 2008.12.25 14463
12 AWSTATS 설치 ADMINPLAY 2008.12.25 23811
11 Apache 버전확인 ADMINPLAY 2008.12.23 15428
10 CGI 오류: Premature end of script headers (Internal Se... 1 ADMINPLAY 2008.12.14 14127
9 apache log 정리 ADMINPLAY 2008.12.14 13528
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234