From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Natasha Kerensikova Newsgroups: comp.lang.ada Subject: AWS and "304 Not Modified" responses Date: Thu, 27 Mar 2014 13:02:01 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: Injection-Date: Thu, 27 Mar 2014 13:02:01 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="76a49b86bc3e16725b7cfca3d85cb4c8"; logging-data="22632"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18imylvUc+dd2xULw6nZ4eg" User-Agent: slrn/1.0.1 (FreeBSD) Cancel-Lock: sha1:dlhjsF5uSciTNo79rDsYSCbi/fc= Xref: news.eternal-september.org comp.lang.ada:19000 Date: 2014-03-27T13:02:01+00:00 List-Id: Hello, I hope I'm not too out-of-topic, but I have a little question about Ada Web Server: how can I send "304 Not Modified" responses on requests for contents generated by AWS client (i.e. not files), using Last-Modified/If-Modified-Since and/or Etag/If-None-Match HTTP headers? I see that when responding with a File, AWS automatically generates Last-Modified and respond 304 to appropriate If-Modified-Since conditional requests; But I haven't seen any way of doing the same thing on generated content. While I didn't really expected everything to be handled for me, I'm really surprised by not finding anything to add custom headers to HTTP responses. Am I missing something or is it really impossible? Thanks for your help, Natasha