🍋
Menu
Web

Cache-Control

Cache-Control HTTP Header

An HTTP header that specifies caching policies such as max-age, no-store, and immutable for browsers and CDN proxies.

기술 세부사항

Cache-Control is part of the web platform's core infrastructure. Modern browsers implement http through standardized Web APIs, ensuring consistent behavior across Chrome, Firefox, Safari, and Edge. The relevant specifications are maintained by the W3C, WHATWG, or IETF. Understanding the underlying protocol or mechanism helps developers use cache-control correctly, avoid common pitfalls, and optimize for performance and security.

예시

```javascript
// Cache-Control: web API example
const response = await fetch('/api/resource');
const data = await response.json();
console.log(data);
```

관련 도구

관련 용어