(Thu, May 26, 2005 at 12:02:08PM -0400) Brian Sullivan wrote/schrieb/egrapse:
> On 5/24/05, Brian Sullivan <[EMAIL PROTECTED]> wrote:
> > I am trying to determine if (and where) the Last-Modified http header
> > is set in CoreBlog(1.11).
...
> OK -- I have had a look at this in more detail and have come up with a
> couple of issues.
> 
> entry_body seems like the right place to do this.
> I have added this to entry_body:
> 
> <dtml-if modifieddateset>
> <dtml-else>
> <dtml-call 
> "RESPONSE.setHeader('Last-Modified',date_created().toZone('GMT').rfc822())">
> <dtml-call "REQUEST.set('modifieddateset',1)">
> </dtml-if>
> 
> It is not ideal though --this sets Last-Modified to the creation date
> of the first entry on the page (I would like it to be the latest entry
> as there could be more than one and the sort order is not always the
> same but can't figure out how to get that to work). 

Hi!

Did you have any success with "If-Modified-Since" Headers triggering
HTTP 304 "not modified" responses? I have set up similar code in the
entry_html dtml-method, but it does not seem to work: The logs show 
that I'm still serving out the full pages to clients. Either those
clients don't do "if-modified-since" in requests, or else I might need
some more setup. (It's unlikely to be the clients fault, since I see
some web crawlers get full content always.)

Do I need an "Accelerated HTTP Cache Manager" for this?

As for your problem with the "last" last modified time: If you add your
code to the pages that actually loop through the entries, then I think
you can check from inside the loop if you are on the latest entry. (I
haven't implemented that yet.)

Regards,

Sascha

_______________________________________________
COREblog-en mailing list
[email protected]
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en
Unsubscription writing to [EMAIL PROTECTED]

Reply via email to