ended5월 8일· 1 sources

Browser Cache Control Without mod_headers: The PHP filemtime Strategy

PHP filemtime으로 캐시 무효화하기—header 없이 간단하게

Why it matters

Stale cached content is a persistent problem for web developers—new articles or updates remain invisible until users manually clear their browser cache. This article reveals how PHP's filemtime() function offers an elegant solution through URL versioning: browsers continue leveraging local cache when files haven't changed, but automatically refetch when timestamps shift. It's a lightweight, header-free approach perfect for developers on shared hosting.

1
Sources
+0
24h
Growth
85d
Active
cache-bustingfilemtimebrowser cachingquery parametersasset versioning

Sources

Related Issues