오늘: 13|어제: 15|전체: 233,982|회원: 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
글쓴이 분류 제목 조회 수
Luatic™ XpressEngine .htaccess 파일 관련 팁(웹 사이트 퍼포먼스 향상 및 트래픽 절감 효과) file 2280
Luatic™ Apache .htaccess로 파일 업로드 방지하기 file 1798
루아틱 Apache Apache 2 prefork 와 worker 차이 23702
Omega3 Apache Apache 에서 최대 접속자 수 늘리기 1903
루아틱 Apache Apache의 rewrite Module 11774
Luatic™ ASP ASP.NET 란 file 2242
루아틱 Etc Byte(바이트) 와 bit(비트)의 차이 1 19783
Omega3 Linux CentOS 5.7& 6.2 에서 YUM으로 NGINX와 PHP5.3.10, PHP-FPM 설치하기 2153
Luatic™ Linux CentOS Yum 사용법 1 1748
Omega3 Linux centos에서 mysql 5.5로 업그레이드 4 2009
YJSoft™ XpressEngine Cloudflare Railgun 활성화 후 로그인이 몇초만에 풀린다면 3 1119
Luatic™ Apache cPanel MIME Types에 추가할 수 있는 것들 1852
Luatic™ PHP cPanel 에서 줌라(Joomra) 3.0 설치 후 한글 언어팩 설치방법. file 2167
YJSoft Etc DNSever 연결하기 2 file 2136
YJSoft™ PHP FastCGI 환경에서 PHP Digest 인증 사용 1 715
루아틱 Etc ftp에서 passive와 active 모드의 차이? 2 22601
YJSoft Etc Godaddy 도메인 루아틱에 연결하기 1 file 880
루아틱 Etc html 색상표 18479
Luatic™ WebServer HTTP Status Code 1169
루아틱 PHP KimsQ RB로 홈페이지+모바일홈피 5분만에 만들기 1 15624
Board Pagination ‹ Prev 1 2 3 4 5 6 Next ›
/ 6

처음