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

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

6,858  
목차
  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 (임시파일제거)

 


분류 제목
talk 오래간만에 방문했습니다. 2
sports 브라질 축구 실력이 어쩌다 우리나라 수준이 돼버렸는지..
web mwb - 삭제글이동 기능 설정 (= 쓰레기통보드 = 휴지통보드 = Trash board)
web 워드프레스가 설치된 폴더(wp-config.php가 속해있는 폴더)를 아파치 라우팅 설정 파일 (.htacc… 1
girl 이예빈 치어리더 물 마시기 위해 어쩔 수 없이 마스크 속 미모 노출 (누나)
money 구글 애드센스 CPC 1.11달러 경험..ㅎ
talk 구글 크롬과 유튜브는 다른 회사?
web Ie6부터 ie9까지 대응 (=익스플로러 하위 브라우저 호환 처리법)
money 네이버 애드포스트 CPC 1,936원 ^0^
drama 박신혜 10대 시절의 풋풋했던 모습을 볼 수 있는 드라마 「키다리 아저씨」
web 우주 바탕화면 (1920 x 1200)
money 수익형 홈페이지 무료 제작, 유료 제작 방법
ucc 편의점 담배 진상 손님 [웹드라마]
ucc 승부욕에 사로잡힌 이소룡을 변화시킨 말
pc 카카오톡 PC버전 설치
life 스마트폰 공장초기화 여러 번 반복해야 안전
web 네이버 카페 swf 파일 업로드 및 링크 금지 조치
dance 한림예고 실용무용과14기 군무(=단체 댄스)
talk 스마트폰 해킹(?) 피해 경험담
news 나리야 (Nariya) - 아미나5.4 버전(?) 출시 1
28/163
목록
찾아주셔서 감사합니다. Since 2012