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

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

6,841  
목차
  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 파일질라 (시스템파일・숨김파일・ 특정확장자파일・특정파일명파일・파일파일명포함파일) 숨김처리 (= NTUSER파…
web F12 (개발자모드) console (콘솔) + SSH콘솔 + CMD모드 등에서 위에서 작성한 내용을 그대로…
web 큰 양파맨 이모티콘 빅사이즈 모음
web DB - blob (binary large object) : 데이터베이스에 저장하기 위한 바이트(bytes)…
web 쇼핑몰 MD ? MD 추천상품 ?
web 본인 홈페이지 언어셋 확인하는 법 (euckr, utf8)
web crontab (크론탭) 수정 반영 ※ crontab 시간 설정 방법/예제
web CSS - 폰트오썸 CSS content 값 (= 포트오썸아이콘 = 폰트오썸특수문자) ★★★★★
web 로고 무료제작사이트 모음
web 동영상 (녹화 + 편집) 프로그램 추천 + 유튜브 업로드가능 (파일확장자 + 파일사이즈) 지원내역
web 위키 다운로드 주소 모음 (Wiki Download Site Collection)
web FTP (File Transfer Protocol : 파일 전송 프로토콜) ?
web PG 사 (Payment Gateway 社) ?
web 트래픽 아끼는 법 4 - (= 트래픽 절약법) ★ 2
web masonry (메이슨리) - 벽돌쌓기 레이아웃 정렬(= pinterest 핀터레스트 방식)
web 크롬 - 캐시 만료 설정 코드 + 캐시 새로고침 (= Clear Cache 크롬 확장 프로그램) ※ 클리어 …
web GitHub (깃허브) 파일 비교 사이트 이용 방법
web 윈도우10 - 파일 확장자 표시 (※ 이미지 엑박 시 점검 사항)
web IE11 이하 (= 익스플로러 하위브라우저) 이미지 엑박 에러 원인/해결
web 블로그 지수 확인 방법 (= 저품질 블로그 탈출법)
14/19
목록
찾아주셔서 감사합니다. Since 2012