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

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

6,727  
목차
  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 랜섬웨어로 삥뜯는 해커를 해킹한 개발자
ucc 길거리에서 부르는 노래 음질이 이렇게 좋을 수 있나요?
pc 효율적인 (파일명 작성 방법 + 파일 관리)
talk 그누보드 커뮤니티가 많이 침체된 느낌이네요.
site 네이버블로그 오픈API 주소
web 그누보드M (0.1.9 그누보드 다국어 베타) 업데이트 (18-10-12 16:35)
money 구글애드센스 자동광고 효과
pc 크롬 북마크바 우측 (= 연결탭 오른쪽)의 "모든 북마크" 폴더 버튼 제거 방법 (= How to Chrom…
talk 루리웹 메뉴에 AV가 있길래....
girl 신세경 님 VS 모모랜드 연우 님 미모 대결
pc 다음 팟플레이어 - 영상 좌우반전 단축키
pc 윈도우10 - 시작 메뉴 마우스오른쪽 메뉴에 제어판 메뉴 추가
girl 댄스팀 해피니스 「레아」 엉덩이 댄스 COVER
pc crossex live checker (정체/삭제방법)
dance 처음처럼 소희 님 (New Thang / 내가 없냐) 댄스 COVER
money 애드센스 광고주가 요즘 얼마 없나봐요...
money 인스타그램 수익모델?
money 애드센스 배너 배치 팁
talk 똥파리 한 마리가 옆에서 몇 시간 째 윙윙거리며 데모 중입니다.
pc User-Agent Switcher for Chrome (PC에서 구글 사이트 모바일 버전으로 보는 법)
54/163
목록
찾아주셔서 감사합니다. Since 2012