Re: [Mason] dealing with If-Modified-Since

2009-01-28 Thread Louis-David Mitterrand
On Wed, Jan 28, 2009 at 04:28:29PM +, Jérôme Etévé wrote: > Hi, > > IMHO, it's completely fine for a dynamic resource to deal with cache > related http headers. > > However, I didn't find the way to trigger the use of the header by the client. > Maybe via a Cache-Control header ? That kind o

Re: [Mason] dealing with If-Modified-Since

2009-01-28 Thread Jérôme Etévé
Hi, IMHO, it's completely fine for a dynamic resource to deal with cache related http headers. However, I didn't find the way to trigger the use of the header by the client. Maybe via a Cache-Control header ? Jerome. On Wed, Jan 28, 2009 at 8:48 AM, Louis-David Mitterrand wrote: > Hi, > > Ho

[Mason] dealing with If-Modified-Since

2009-01-28 Thread Louis-David Mitterrand
Hi, How to deal with (google's and others) If-Modified-Since requests from your dynamic mason pages? Offhand I'd do it thusly: 1) check incoming header for If-Modified-Since, 2) parse date, store it, 3) check lastmod date of page data (db query or other), 4.1) if modified send regular 200 an