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

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
번호 제목 글쓴이 날짜 조회 수
88 트래픽분석툴(mod_throttle) 설치 및 설정 - apache1.3.x ... file ADMINPLAY 2010.05.03 20019
87 초간단 웹 페이지 로딩시간 체크법 ADMINPLAY 2009.03.17 15350
86 웹페이지에서 한글이 깨지는 현상 막기 ADMINPLAY 2009.01.03 16528
85 웹페이지 가속 기술인 모드 페이지스피드(mod_pagespeed)... l2zeo 2013.01.27 12143
84 웹방화벽 ModSecurity 룰적용 순서 file l2zeo 2010.05.29 18916
83 웹 사이트 속도측정 file ADMINPLAY 2009.03.04 16462
82 우분투9.10 - Tomcat6 와 Apache2연동 ADMINPLAY 2012.10.31 11400
81 아파치웹서버 모니터링하기 file ADMINPLAY 2009.03.17 16476
80 아파치에서 한글 파일 읽기 [mod_url 설치] file ADMINPLAY 2009.03.17 17297
79 아파치에서 멀티도메인 설정 방법 1 l2zeo 2012.10.09 20972
78 아파치(apache) 무단 링크 방지 ADMINPLAY 2011.06.18 18977
77 아파치 특정폴더에 암호걸기 ADMINPLAY 2008.10.08 16032
76 아파치 컴파일 에러(apr-util) configure: error: cannet ... ADMINPLAY 2009.08.08 19574
75 아파치 웹서버 사용 시 무단 링크 방지법 ADMINPLAY 2009.04.03 15592
74 아파치 모듈 내용 ADMINPLAY 2008.12.10 15905
73 아파치 데몬이 안 뜰경우 ADMINPLAY 2009.11.26 14874
72 아파치 GeoIP를 이용한 국가별 제한 ADMINPLAY 2010.01.30 18787
71 아파치 2.X 버전에서 mod_cband를 이용한 트래픽관리 file ADMINPLAY 2009.01.17 19019
70 서비스 제한측면의 아파치 활용 예제 ADMINPLAY 2012.06.26 30318
69 서비스 동시접속 인원알기 ADMINPLAY 2008.10.07 16892
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234