Hi there, This is an interesting use case, so I've entered a RFE:
"Add ability to set entity headers without an entity" http://restlet.tigris.org/issues/show_bug.cgi?id=995 A workaround could be to issue a HEAD request after a 304 to obtain the latest metadata, including the Expires header without the cost of retrieving the whole entity. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -----Message d'origine----- De : webp...@tigris.org [mailto:webp...@tigris.org] Envoyé : lundi 23 novembre 2009 19:16 À : discuss@restlet.tigris.org Objet : RE: Re: Expires Header and Conditional GET with status Not Modified Hello, yes, i know. The behaviour, you described, works fine, but I want more. I want to send back always a "Expires" Header! If the client does a Conditional GET, the server can send back a new representation with a new "Expires" header OR say "Not Modified" without "Expires" header, but if i do not send back the Expires Header, from now on the client doesn't use the cache and does always a Conditional GET. ONLY if i do a "normal" Get, then the representation is sent back with the Expires Header and then the client use the cache again until the Expiration time. I'm asking for a possibility to say "Not Modified" AND set the Expires Header, but i can't do that with Restlet. See below... Thank you. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=24235 04 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2433293