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

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

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

 


분류 제목
pc 크롬 - 구글 번역 확장 프로그램 소개 (※ Google 번역기)
pc ACER (에이서) 노트북 BIOS(바이오스)・CMOS(시모스) 진입 / 부팅 순서 설정
web 특수문자를 이용한 rabbit (토끼) 이모티콘 표현법
web 요소짤림, 내용짤림 원인별 해결사항 (= 짤림방지 = 짤림해결, 짤림증상해결)
pc 윈도우10 - 메모장 관리자 권한으로 실행 + hosts 파일 수정 ※ localhost (로컬호스트) 속도…
web https (SSL 보안인증서) 적용 고려사항 + (Letsencrypt + StarSSL + cloudfl… 2
web 코드펜 같은 웹 개발 도구 사이트 모음 ※ 코딩 결과물 바로 확인 + Emmet 에밋 (= 빠른코딩/단축코딩…
pc 윈도우검색프로그램 비교 ( quick-search vs. everything) (퀵서치 vs 에브리씽/에브리… 2 설문 중
site 문챗 vs 유챗 비교 + 채팅방 종류 (= 채팅사이트 모음)
web 댓글 창을 뚫고 나오는 특수문자
web 랜덤이미지링크 (Random Image img)
pc 윈도우10 - 부팅 시 잠깐 보이는 cmd (= 도스창) 원인・해결
life 구글 로그인 2단계 인증 알림 안 올 때 해결 방법
pc 브라우저 비교/추천 ★ (Browser, Speed, Merit, Demerit) 2
web 쿠키, 세션, 캐시(=캐싱) (정의, 장점, 단점) 차이점/비교
web 무료 이미지 호스팅 사이트 (=이미지 외부 링크 허용)
pc 크롬 팝업 (차단・허용) 설정 + 새탭 새창 팝업 차단 (Chrome, PopUp)
web A non-numeric value encountered 오류
autoset Autoset (오토셋) - 다운・설치・홈페이지 개설 ★★★★★
pc 윈도우10 - NTUSER.DAT 파일 삭제 금지. ㅡㅡ;
3/163
목록
찾아주셔서 감사합니다. Since 2012