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: client denied by server configuration ADMINPLAY 2010.10.25 21665
27 mod_deflate 설정 ADMINPLAY 2011.03.18 21236
26 아파치(apache) 무단 링크 방지 ADMINPLAY 2011.06.18 18977
25 Apache 2.2.17 (mod_url 하고 mod_rewrite 충돌) file ADMINPLAY 2011.08.18 20396
24 Apache 2.2.21 패치 (mod_proxy_ajp 패치와 apache killer... ADMINPLAY 2012.01.16 19641
23 Apache Worker 방식의 이해 및 설정법 ADMINPLAY 2012.01.16 16955
22 [Apache] MPM(Prefork VS Worker) ADMINPLAY 2012.01.16 19639
21 KeepAlive 설정 및 정의 ADMINPLAY 2012.01.16 19891
20 Apache 로그레벨의 종류 ADMINPLAY 2012.01.16 20844
19 apache cronolog를 이용한 Apache Log File 날짜 별로 생... ADMINPLAY 2012.01.16 23506
18 Apache mod_deflate ADMINPLAY 2012.01.16 23387
17 (간단한 팁) 우분투에 Apache2 설치하기 ( apt-get ) 로키 2012.04.01 17604
16 서비스 제한측면의 아파치 활용 예제 ADMINPLAY 2012.06.26 30320
15 [정보] [Apache+PHP] Segmentation Fault가 발생할 경우 ADMINPLAY 2012.07.27 47832
14 Apache 에서 최대 접속자 수 늘리기 ADMINPLAY 2012.07.30 14405
13 h264 스트리밍 서버 구축(리눅스,아파치) (실시간 아님, ... ADMINPLAY 2012.08.13 17175
12 아파치에서 멀티도메인 설정 방법 1 l2zeo 2012.10.09 20974
11 우분투9.10 - Tomcat6 와 Apache2연동 ADMINPLAY 2012.10.31 11402
10 apache가 worker 모드인지 prefork 모드로 동작하는지 확인 1 file l2zeo 2013.01.21 17467
9 웹페이지 가속 기술인 모드 페이지스피드(mod_pagespeed)... l2zeo 2013.01.27 12145
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234