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

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

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

 


분류 제목
girl 회원 님, 스파링 한번 하시죠? [누나]
talk 음????? 5
web CSS - 글자흐림(= 글자번짐) 원인
site FTP 프로그램 다운로드 주소 모음 (= FTP 추천)
military 잠수함/군함 위장색이 파란색 아닌 이유
web 그누보드/영카트 (파일/폴더) 자료 저장/보관/관리 노하우
site 저작권 신고 없는 배경음악이 필요하다면?
dance 해변가 미싱유 (Missing you) 댄스/누나
dance 레이디비 LadyB 시온 님 - 왠지 & 봄의나라이야기 & 라라리라라 & 롤린 댄스 버스킹 [누나]
talk 가입했습니다^^ 1
girl 갤럭시Z플립 소개녀 주연 님
sports 황의조 해트트릭 (프랑스 리그1 득점 아시아 선수 1위 등극)
ucc 손흥민: 김민재, 김민재 들어오라고 ~~ > . <
web 네트워크 해킹 유형 - 스니핑(Sniffing : 도청) + 스푸핑(spoofing : 변조/위조) - 보…
dance 추랑 님 댄스 4종 세트 (뉴진스/시스타/걸스데이/제로투)
talk 삼성마우스 (SPA-JMA1PUW 유선 모델) 이용후기
talk 안녕하세요^^ 출첵겸 할말~ㅋㅋ 1
web (질문/의뢰)하실 때 「간단」이란 말은 피하는 게... ★
site 소스 비교 프로그램 다운로드 주소 모음
talk 첨부파일 위치 (본문 위 / 본문 밑) 중 어디가 좋을까?
110/163
목록
찾아주셔서 감사합니다. Since 2012