오늘: 10|어제: 13|전체: 233,834|회원: 118 (+0)|문서: 56,040 (+0)|댓글: 8,019 (+0)|첨부파일: 1,389 (+0)


WordPress
2014.08.19 19:18

워드프레스 브라우저 캐시 설정

조회 수 1463 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print Files
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print Files
Extra Form
출처 http://code.tutsplus.com/articles/10-qui...--wp-23148

워드프레스용 브라우저 캐시 설정

.htaccess 에 추가합니다. (루아틱에서 사용할 경우 약간의 수정이 필요합니다.

<IfModule mod_expires.c>
 ExpiresActive on

# Perhaps better to whitelist expires rules? Perhaps.
 ExpiresDefault      "access plus 1 month"

# cache.appcache needs re-requests
# in FF 3.6 (thx Remy ~Introducing HTML5)
 ExpiresByType text/cache-manifest "access plus 0 seconds"

# Your document html
 ExpiresByType text/html "access plus 0 seconds"

# Data
 ExpiresByType text/xml "access plus 0 seconds"
 ExpiresByType application/xml "access plus 0 seconds"
 ExpiresByType application/json "access plus 0 seconds"

# RSS feed
 ExpiresByType application/rss+xml "access plus 1 hour"

# Favicon (cannot be renamed)
 ExpiresByType image/x-icon "access plus 1 week"

# Media: images, video, audio
 ExpiresByType image/gif "access plus 1 month"
 ExpiresByType image/png "access plus 1 month"
 ExpiresByType image/jpg "access plus 1 month"
 ExpiresByType image/jpeg "access plus 1 month"
 ExpiresByType video/ogg "access plus 1 month"
 ExpiresByType audio/ogg "access plus 1 month"
 ExpiresByType video/mp4 "access plus 1 month"
 ExpiresByType video/webm "access plus 1 month"

# HTC files  (css3pie)
 ExpiresByType text/x-component "access plus 1 month"

# Webfonts
 ExpiresByType font/truetype "access plus 1 month"
 ExpiresByType font/opentype "access plus 1 month"
 ExpiresByType application/x-font-woff   "access plus 1 month"
 ExpiresByType image/svg+xml "access plus 1 month"
 ExpiresByType application/vnd.ms-fontobject "access plus 1 month"

# CSS and JavaScript
 ExpiresByType text/css "access plus 1 year"
 ExpiresByType application/javascript "access plus 1 year"
 ExpiresByType text/javascript "access plus 1 year"

 <IfModule mod_headers.c>
  Header append Cache-Control "public"
 </IfModule>
</IfModule>


?Who's Luatic™

profile

Luatic Hosting 운영자

Atachment
첨부파일 '1'

List of Articles
글쓴이 분류 제목 조회 수
루아틱 Apache 사이트 복사 방지 .htaccess에 추가하세요 32620
루아틱 Linux 우분투 12.04 LTS Sever 윈도우에서 우분투로 원격 데스크탑(RDP) 사용하기 3 30352
루아틱 Linux Ubuntu 12.04 LTS Java7 설치시 오류 및 오류 해결법 30327
Luatic™ Linux 갤럭시 S3 에 Ubuntu Linux 설치하기 (영문) 3 file 27813
루아틱 Apache Apache 2 prefork 와 worker 차이 23702
루아틱 Etc ftp에서 passive와 active 모드의 차이? 2 22601
Luatic™ PHP 워드 프레스 사용시 piwik 쉽게 연동 하기 file 21817
루아틱 Linux 우분투 10.04 LTS, sendmail 설치 및 설정 3 21127
루아틱 Etc Byte(바이트) 와 bit(비트)의 차이 1 19783
Luatic™ XpressEngine 루아틱 서버 XE사용시 몇가지 팁 file 19375
루아틱 Etc html 색상표 18478
루아틱 Etc 돈한푼 안들이고 내 사이트 만들기 1탄 3 18382
루아틱 MySQL mysql DB 백업과 복구 17609
포인트 Linux 리눅스 특정확장자 하위디렉토리까지 일괄삭제하기 17374
루아틱 Apache 아파치2 에서 mod_cband 사용법 17236
루아틱 PHP SSL 보안서버인증 적용하기 - 웹호스팅 (XE) 17137
루아틱 Windows Windows 2003에서 IIS 6.0 설치(SSL 설정 1) 16767
Luatic™ PHP XE Cache 적용하기 file 16365
루아틱 Linux 우분투 시간 동기화 하기 16061
루아틱 PHP KimsQ RB로 홈페이지+모바일홈피 5분만에 만들기 1 15624
Board Pagination ‹ Prev 1 2 3 4 5 6 Next ›
/ 6

처음