오늘: 3|어제: 14|전체: 233,491|회원: 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
글쓴이 분류 제목 조회 수
가온누리 Etc 후딱빌더(그누보드) cheditor5에서 사진 첨부 했을때 오류 수정 file 13433
YJSoft PHP 함수() or die("")? 2 2985
YJSoft Etc 하위 도메인에 티스토리/네이버 블로그 연결 file 3424
merkava Etc 퓨니코드 변환하기 707
YJSoft Etc 편집기 사용시 팁 1988
cholalo Windows 파이어폭스 캐쉬 초기화하는 방법 file 3572
Luatic™ Windows 티밍이란? 4 4885
Luatic™ Windows 크롬에서 DNS 캐시 초기화하기 2514
YJSoft™ Windows 크롬 버전 37 업데이트 이후 영어 글자 간격이 이상하다면 2 file 2165
Luatic™ WebServer 크로스 브라우징을 위한 테스트 사이트 file 1039
Luatic™ MySQL 자주 쓰는 MySQL 명령어 정리 2298
루아틱 PHP 인덱스가 비어있을때.. 즉 public_html 하위에 빌더 또는 보드 설치시.. 1 2079
고객지원 XpressEngine 유튜브와 같은 영상 쉽게 올리기. file 1782
루아틱 Etc 윈도우 사용자 dns 캐시 초기화 명령 1 6629
Omega3 Etc 웹페이지 가속 기술인 모드 페이지스피드(mod_pagespeed)를 이용한 순수한 속도 향상 3705
루아틱 Linux 웹소스 euc-kr 에서 utf-8 일괄변환(find, iconv 이용) 14812
Luatic™ WordPress 워드프레스 최적화 #1 (작성중) 2 482
merkava WordPress 워드프레스 최적화 1096
Luatic™ WordPress 워드프레스 주소 변경 방법 file 858
Luatic™ WordPress 워드프레스 속도, 성능 최적화하기 file 1780
Board Pagination ‹ Prev 1 2 3 4 5 6 Next ›
/ 6

처음