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

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

6,750  
목차
  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 플레이스홀드잇 (placehold.it) - 더미 이미지 만들기
pc 윈도우10 - 블랙모드・ 화이트모드
pc 윈도우10 - 작업표시줄에 바탕화면 아이콘 생성 ★ 2
issue 넷플릭스 계정 공유 어려워진다.
dance 치어리더 목나경 님 핫이슈 (Hot Issue) 안무 댄스
web 그누보드5, 배추빌더5, 아미나 설치 순서 비교
autoset Autoset (오토셋) - 가상호스트 설정
dance 냥뇽녕냥 님의 코카인 댄스
money 허위 토렌트 사이트로 활동하는 웹하드 파트너 주의사항
drama SBS 드라마 「조선구마사」 욕 먹는 이유 정리
girl 팡팡스튜디오 초귀요미 누나, 배우 이희루 님
life 마른 오징어 맛있게 굽는 법
talk 안녕하세요 3
money 문득, 갑자기 생각난건데, 이런 등업제 괜찮지 않나요? 5
talk 스마트폰 해킹 전조 증상
pc 크롬 입력 에러 유발 원인 (= 한국어 한컴 입력기) 삭제/제거
pc 효율적인 (파일명 작성 방법 + 파일 관리)
girl 드래곤볼 「인조인간 18호」 닮은 브브걸 단발좌 「유나」
talk 가입했어요. 잘 부탁드려요. 2
web 홈페이지 제작에 필요한 필수 준비물 + 홈페이지 제작 10단계
30/163
목록
찾아주셔서 감사합니다. Since 2012