-
【技巧】404 Funky Caching
這是一種用在大量抓同一個 php page 時所使用的 cache 技巧…
[URL=http://simon.incutio.com/archive/2002/11/16/funkyCachingExplained]Funky caching explained[/URL] (from [URL=http://simon.incutio.com/]Simon Willison’s Weblog[/URL])
[URL=http://philringnalda.com/blog/2002/11/halfbaked_and_a_little_fried.php]Half-baked, and a little fried[/URL] (from [URL=http://philringnalda.com/]phil ringnalda dot com[/URL])
[URL=http://www.decafbad.com/blog/2002/11/28/ooocch]Baking, funky caching, and tarballs for weblog cryo storage[/URL] (from [URL=http://www.decafbad.com/]0xDECAFBAD[/URL])
最原始在 PHPCon 發表的文件:
[URL=http://www.lerdorf.com/tips.pdf]Rasmus Lerdorf’s PHP Tips and Tricks[/URL] (pdf)
作法其實很簡單:把 404 handler 指到一個 .php,由這個 .php 生 static page 出來,下次 http server 就不會再 call 404 handler (因為檔案存在了)。