오늘: 23|어제: 15|전체: 234,199|회원: 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>



List of Articles
글쓴이 분류 제목 조회 수
Luatic™ Etc PHP 및 각 언어 소스 많은곳 1 2136
Luatic™ XpressEngine 로그인풀림방지 - 주소 고정하기 file 2123
루아틱 PHP 인덱스가 비어있을때.. 즉 public_html 하위에 빌더 또는 보드 설치시.. 1 2080
Omega3 Linux centos에서 mysql 5.5로 업그레이드 4 2009
YJSoft Etc 편집기 사용시 팁 1989
Omega3 Apache Apache 에서 최대 접속자 수 늘리기 1903
Luatic™ Apache cPanel MIME Types에 추가할 수 있는 것들 1852
Luatic™ Apache .htaccess로 파일 업로드 방지하기 file 1798
고객지원 XpressEngine 유튜브와 같은 영상 쉽게 올리기. file 1782
Luatic™ WordPress 워드프레스 속도, 성능 최적화하기 file 1780
Luatic™ Linux CentOS Yum 사용법 1 1748
Luatic™ MySQL MySQL에서 디비엔진을 선택할때의 선택 방법 1707
Luatic™ PHP PHP 언어 기반의 다양한 CMS 및 블로그 설명 1639
Luatic™ WordPress 워드프레스 3.9.1 기준 멀티사이트 옵션 켜기 file 1632
Luatic™ Nginx NGINX wordpress rewrite 1601
Luatic™ Etc 구글 검색엔진 최적화 매뉴얼 1601
Luatic™ KimsQ RB 루아틱에서 KimsQ 설치 관련 팁 file 1598
Luatic™ Linux vi 에디터 단축 모음 1 1591
1sam PHP PHP 필수 강좌 - 정규식 Regular Expressions 1486
Luatic™ WordPress 워드프레스 브라우저 캐시 설정 file 1463
Board Pagination ‹ Prev 1 2 3 4 5 6 Next ›
/ 6

처음