2014-02-26 5 views
1

블로그 스폿로드 속도를 향상시켜야하며 캐시 관리 위치를 알 수 없습니다. 정상적인 웹 사이트에서는 .htaccess 파일입니다. 나는이 코드를 넣어야 할 경우 : htaccess로 폴더를 제공하지 Blogspot의의blogspot의 브라우저 캐시를 관리합니까?

## EXPIRES CACHING ## 
<IfModule mod_expires.c> 
ExpiresActive On 
ExpiresByType image/jpg "access 1 year" 
ExpiresByType image/jpeg "access 1 year" 
ExpiresByType image/gif "access 1 year" 
ExpiresByType image/png "access 1 year" 
ExpiresByType text/css "access 1 month" 
ExpiresByType text/html "access 1 month" 
ExpiresByType application/pdf "access 1 month" 
ExpiresByType text/x-javascript "access 1 month" 
ExpiresByType application/x-shockwave-flash "access 1 month" 
ExpiresByType image/x-icon "access 1 year" 
ExpiresDefault "access 1 month" 
</IfModule> 
## EXPIRES CACHING ## 

답변

0

먼저 ..

블로그 로딩 이미지와 스크립트 (CSS, 다른 광고 ... 등)에 의존을, 낮은 크기를 사용 이미지를 사용하거나 압축 도구를 사용하십시오. Google에서 두 도구를 모두 찾을 수 있습니다.

2

나는 그것을 :)

편집 작업을한다면 당신의 머리 아래 섹션

<include expiration='7d' path='/assets/**.css'/> 
<include expiration='7d' path='/assets/**.js'/> 
<include expiration='3d' path='/assets/**.gif'/> 
<include expiration='3d' path='/assets/**.jpeg'/> 
<include expiration='3d' path='/assets/**.jpg'/> 
<include expiration='3d' path='/assets/**.png'/> 

확인이 메타 태그 를 추가하여 그것을 할 수 있다고 생각 : 내 blog는 자바 스크립트 무거운 기타의 번호를 가지고 일이 페이지 시작시 실행됩니다. 하지만이 코드와 다른 압축을 추가하면 블로그가 빨리로드됩니다.

관련 문제