tanakahisateru / pinoco

Web site development framework using PHP and (mainly) PHPTAL
http://tanakahisateru.github.io/pinoco/
Other
43 stars 10 forks source link

Using browser cache even if not static #60

Closed tanakahisateru closed 12 years ago

tanakahisateru commented 12 years ago

ETag and last-modified header is useful to boost performance to respond GET request. Pinoco::serveStatic() can do but it's for only static file (e.g. uploaded image or such as) serving. I also use that code when creating pages.

tanakahisateru commented 12 years ago

Users can use abortIfNotModified as standalone method before serving content.