Neova고급 SEO 플랫폼

정적 리소스에 캐시 수명이 없거나 30일 미만

Neova에서는 크롤링 자체에서 실행됩니다. 따로 설정할 것이 없습니다.

규칙 최종 검토: 2026년 10월 17일 · 가이드 업데이트: 2026년 10월 17일

재방문자가 필요한 것보다 일찍 이 파일들을 다시 내려받습니다. 30일 기준은 Lighthouse의 것입니다. 이 한도를 정한 검색엔진은 없습니다.

해 볼 수 있는 조치

정적 파일에 Cache-Control max-age를 2592000(30일) 이상으로 설정하고, 변경 사항은 버전이 붙은 파일 이름으로 배포하세요.

Neova가 플래그를 지정하는 이유

  • 캐시 기간이 길지 않으면 재방문자가 같은 이미지, 스크립트, 스타일을 다시 내려받아 재방문이 느려집니다.
  • Lighthouse는 정적 파일의 캐시 기간이 30일 미만이면 놓친 절약으로 봅니다.
  • 이 한도를 정한 검색엔진은 없습니다. 파일 이름에 버전을 붙이면 오래 캐시하면서도 변경 사항을 배포할 수 있습니다.

출처

전체 가이드

이 부분은 현재 영어로만 제공됩니다.

What This Check Flags

This audit fires when your CSS, JavaScript, fonts, or images come back with a short (or missing) Cache-Control lifetime, so returning visitors and Googlebot re-download bytes that never changed. The stakes are real: every needless re-fetch burns your Core Web Vitals budget and slows repeat page loads, which is exactly the friction that pushes LCP over the line.

The Real Example, and the Fix

Here is what a well-cached asset actually looks like on the wire. Pull the headers on a versioned file from a public CDN:

$ curl -I https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js

HTTP/2 200
content-type: application/javascript; charset=utf-8
cache-control: public, max-age=31536000, s-maxage=31536000, immutable
etag: W/"155ed-7khZLR//lS/PBs4LZm7UeFSTr9w"

That max-age=31536000 is one year in seconds, and immutable tells the browser not to even bother revalidating. The failing version of the same file usually looks like cache-control: no-cache, max-age=0, or no header at all, so the browser phones home on every visit.

The catch: you can only cache aggressively if the filename changes when the content changes. That is what fingerprinting (also called cache-busting or content hashing) does. Your build tool renames app.js to app.9f2c1a.js whenever a byte changes, so a one-year cache is safe. Webpack, Vite, and Rollup all emit hashed filenames out of the box:

// vite.config.js
export default {
  build: {
    rollupOptions: {
      output: {
        entryFileNames: 'assets/[name].[hash].js',
        assetFileNames: 'assets/[name].[hash][extname]'
      }
    }
  }
}

Then set the header at the server. Apache:

<FilesMatch ".(js|css|woff2|png|jpg|svg)$">
  Header set Cache-Control "public, max-age=31536000, immutable"
</FilesMatch>

Nginx:

location ~* .(js|css|woff2|png|jpg|svg)$ {
  add_header Cache-Control "public, max-age=31536000, immutable";
}

Cache Lifetimes That Actually Make Sense

Not everything gets a year. The right TTL depends on how the file is named and how often it changes:

Asset Type Fingerprinted? Recommended Max-Age Directive to Add
Hashed JS/CSS bundles Yes 31536000 (1 year) public, immutable
Self-hosted webfonts (woff2) Usually 31536000 (1 year) public, immutable
Product / content images Often not 2592000 (30 days) public
Logo, favicon, sprites No 604800 (7 days) public
Unhashed app.js No 3600 (1 hour) + ETag public, must-revalidate
HTML documents No 0 no-cache (revalidate)

The trap people fall into is slapping a one-year cache on an unhashed style.css. Ship a design change and half your audience stays stuck on the old file for months. Fingerprint first, cache hard second.

Cache-Control vs ETag: Don't Confuse the Two

These solve different problems and people mix them up constantly. Cache-Control with a real max-age means the browser reuses the file without asking the server at all, zero network requests, the fastest possible outcome. An ETag (or Last-Modified) only enables a conditional request: the browser still calls the server, which answers 304 Not Modified if nothing changed. A 304 is cheap, but it is not free, you still pay a round trip. So an asset served with only an ETag and max-age=0 revalidates on every single view, which is exactly what this audit flags. Use ETag as the safety net for files you can't fingerprint, and a long max-age as the real win for files you can.

How to Detect It

  1. Lighthouse: run an audit in Chrome DevTools and open the "Serve static assets with an efficient cache policy" opportunity under Performance. It lists every offending URL with its current TTL and the transfer size you would save.
  2. curl -I: hit any static file directly and read the cache-control line: curl -I https://yoursite.com/wp-content/themes/x/style.css. No header, no-cache, or a tiny max-age means it is failing.
  3. DevTools Network panel: reload the page, then look at the Size column. Files served from cache read "(memory cache)" or "(disk cache)"; anything showing a real byte size on a repeat load is being re-fetched. Right-click the column header to add a Cache-Control column and scan the whole waterfall at once.

How to Fix It

  1. Turn on fingerprinted filenames in your bundler (Vite/Webpack/Rollup) so content changes always change the URL.
  2. Add the Cache-Control rules above at your web server or CDN, matching TTL to the table.
  3. Keep HTML at no-cache so new pages and updated asset references go live instantly.
  4. If a CDN sits in front of your origin, confirm it honors your headers and set s-maxage for the edge tier.
  5. Re-run Lighthouse and confirm the opportunity clears.

On WordPress specifically, most of this is handled by a caching plugin plus proper server rules; the Speed Up WordPress guide walks through the plugin side.

FAQ

Does a Long Cache Policy Actually Help SEO Rankings?

Indirectly, yes. Caching does not earn ranking points on its own, but it shrinks repeat-view load time, which improves LCP and INP in field data. Google's ranking systems use those Core Web Vitals (there is no single page experience signal), so faster repeat loads help where it counts.

What Is the Difference Between Max-Age and S-Maxage?

max-age controls the browser's private cache; s-maxage controls shared caches like a CDN or proxy. Set both when a CDN is involved so the edge holds the file even if you want browsers to revalidate sooner. See the caching glossary entry for the full directive list.

Why Does Immutable Matter If I Already Set a One-Year Max-Age?

Without immutable, a hard refresh (Ctrl+Shift+R) still sends a conditional request to revalidate. immutable tells the browser the file will never change under that URL, so it skips the round trip entirely, even on reload.

Will Aggressive Caching Break My Site After I Deploy?

Only if your filenames do not change with content. With fingerprinting, a deploy produces new URLs, the HTML points at them, and stale files simply age out. Without it, users can be stuck on old assets. Fingerprint first.

The Vary Header Shows up in My Responses. Does That Affect Caching?

It can. A broad Vary (say, on User-Agent) forces caches to store a separate copy per variant and often kills CDN hit rates. Keep it narrow. The Vary header and caching guide covers the safe patterns.

내 사이트에서 찾아보기

Neova는 크롤링할 때마다 이 점검과 다른 모든 점검을 실행하고, 수정 방법을 팀을 위한 티켓으로 작성합니다.

  • Mac, Windows, Linux용 데스크톱 앱
  • 출처가 함께 있는 696개 점검 전체
  • Search Console과 Analytics 4를 읽기 전용으로 연결
  • Jira, Linear, Asana로 티켓 보내기

Neova 다운로드 Desktop Free 플랜 또는 Solo 14일 무료, 카드 불필요.

성능 점검 전체 · 가이드 · 점검 라이브러리

작성: Neova Labs · 점검 라이브러리로 돌아가기