Skip to content

조회 수 11889 추천 수 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


List of Articles
번호 제목 글쓴이 날짜 조회 수
88 [Apache] 2.4 버전에서 403 에러시 [authz_core:error AH0... ADMINPLAY 2015.01.09 7273
87 CentOS 5.X 에 MRTG설치 할때 한글 문제 ADMINPLAY 2014.06.06 6870
86 WAS 란? WAS 뭐에요? file ADMINPLAY 2014.01.19 10959
85 SetEnvIf 지시어 설명 (mod_setenvif) ADMINPLAY 2014.01.18 7381
84 tomcat 에서 OutOfMemory에러가 발생할때 ADMINPLAY 2013.09.09 8763
» Apache expires 설정으로 브라우저 캐시 l2zeo 2013.03.18 11889
82 apache 설치시 에러 발생 collect2: ld returned 1 exit s... ADMINPLAY 2013.03.12 9807
81 APM설치 후 80포트가 연결이 안되요....ㅜㅜ 1 kimbongsoo 2013.02.14 9799
80 웹페이지 가속 기술인 모드 페이지스피드(mod_pagespeed)... l2zeo 2013.01.27 12141
79 apache가 worker 모드인지 prefork 모드로 동작하는지 확인 1 file l2zeo 2013.01.21 17463
78 우분투9.10 - Tomcat6 와 Apache2연동 ADMINPLAY 2012.10.31 11398
77 아파치에서 멀티도메인 설정 방법 1 l2zeo 2012.10.09 20970
76 h264 스트리밍 서버 구축(리눅스,아파치) (실시간 아님, ... ADMINPLAY 2012.08.13 17169
75 Apache 에서 최대 접속자 수 늘리기 ADMINPLAY 2012.07.30 14401
74 [정보] [Apache+PHP] Segmentation Fault가 발생할 경우 ADMINPLAY 2012.07.27 47809
73 서비스 제한측면의 아파치 활용 예제 ADMINPLAY 2012.06.26 30316
72 (간단한 팁) 우분투에 Apache2 설치하기 ( apt-get ) 로키 2012.04.01 17598
71 Apache mod_deflate ADMINPLAY 2012.01.16 23374
70 apache cronolog를 이용한 Apache Log File 날짜 별로 생... ADMINPLAY 2012.01.16 23502
69 Apache 로그레벨의 종류 ADMINPLAY 2012.01.16 20840
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234