• 회원가입
  • 로그인
  • 구글아이디로 로그인

[web] 크롬 - 캐시 만료 설정 코드 + 캐시 새로고침 (= Clear Cache 크롬 확장 프로그램) ※ 클리어 캐시・캐시 삭제

6,433  
목차
  1. 캐시 만료 설정 코드
  2. 크롬 캐시 새로고침 자동 설정 (= Clear Cache 크롬 확장 프로그램)

 

캐시 만료 설정 코드

/.htaceess 파일에 삽입 (※ 없으면 생성)

 

<IfModule mod_expires.c>

ExpiresActive On

ExpiresDefault "access plus 1 seconds"

ExpiresByType image/x-icon "access plus 2592000 seconds"

ExpiresByType image/jpeg "access plus 2592000 seconds"

ExpiresByType image/png "access plus 2592000 seconds"

ExpiresByType image/gif "access plus 2592000 seconds"

ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"

ExpiresByType text/css "access plus 604800 seconds"

ExpiresByType text/javascript "access plus 216000 seconds"

ExpiresByType application/x-javascript "access plus 216000 seconds"

ExpiresByType text/html "access plus 600 seconds"

ExpiresByType application/xhtml+xml "access plus 600 seconds"

</IfModule>


<IfModule mod_headers.c>

<FilesMatch "\\.(ico|jpe?g|png|gif|swf)$">

Header set Cache-Control "max-age=2692000, public"

</FilesMatch>

<FilesMatch "\\.(css)$">

Header set Cache-Control "max-age=2692000, public"

</FilesMatch>

<FilesMatch "\\.(js)$">

Header set Cache-Control "max-age=216000, private"

</FilesMatch>

<FilesMatch "\\.(x?html?|php)$">

Header set Cache-Control "max-age=600, private, must-revalidate"

</FilesMatch>

Header unset ETag

Header unset Last-Modified

</IfModule>

 

※ 2592000초 = 30일

정보출처: https://codeday.me/ko/qa/20190322/129040.html

구글캐시 권장정책: 최소 1주일 ~ 최대 1년

 

크롬 캐시 새로고침 자동 설정 (= Clear Cache 크롬 확장 프로그램)

 

1.

Clear Cache 확장프로그램 

https://chrome.google.com/webstore/detail/clear-cache/cppjkneekbjaeellbfkmgnhonkkjfpdn?utm_source=chrome-app-launcher-info-dialog


2.

확장프로그램 아이콘 선택 후, 마우스 오른쪽 클릭

> 「확장 프로그램 관리」메뉴 클릭

※ 아래 주소 복사해 이동하면 한번에 옵션수정페이지로 이동 가능.

chrome-extension://cppjkneekbjaeellbfkmgnhonkkjfpdn/options.html#


3-1.
Reload 부분
Automatically reload active tab after clearing data 체크


3-2.
Data to Remove 부분
Cache 체크

 

Ctrl + F5 (캐시 새로고침)  / Ctrl + Shift + Del (임시파일제거)

 


분류 제목
web 네이버에 사이트 노출 안 될 때 조치사항 (= 네이버 고객센터 연락처)
web 홈페이지 로딩이 오래걸릴 때 점검 사항
web 자바스크립트에 <!-- //--> 넣는 이유 (= JS에 HTML 주석 사용 이유)
talk 필독~! 1
web 표정 특수문자 ★
web 특수문자입력법 (자음 > 한자키 > Tab키)
life 운전면허 적성검사 비용 (1종 보통 경우)
talk 놀러 왔서요. 2
talk 헌재의 탄핵결정 사유 맘에 안 들지만, 현명했다.
web https (SSL 보안인증서) 적용 고려사항 + (Letsencrypt + StarSSL + cloudfl… 2
talk 부패세력 추종자들이 태극기 갖고 놀다보니...
pc 네이버 외부 소셜로그인 계정 삭제하는 법
web 클라우드플레어 (cloudflare) 장단점
talk 자게 찾느냐고 시간이 걸렸네요;; 2
talk 회원가입 너무 늦엇습니다. 3
talk 반갑습니다. 1
web TLD (Top Level Domain) - 최상위 도메인 (=톱레벨 도메인) (예: com. net. or…
talk 반갑습니다 안녕하세요! 1
web 굿빌더 라이센스
talk 자꾸 누가 제 귤을 훔쳐 먹습니다. ㅡㅡ;; 3
142/163
목록
찾아주셔서 감사합니다. Since 2012