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 <vindex+lists-mason-us...@apartia.org> wrote: > 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 answer, > > 4.2) if not $m->abort(304)? (need to add another header?) > > Comments, suggestions welcome, > > -- > http://www.critikart.net > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Mason-users mailing list > Mason-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mason-users > -- Jerome Eteve. Chat with me live at http://www.eteve.net jer...@eteve.net ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users