September 04, 2018 09:41AM
Francis Daly Wrote:
-------------------------------------------------------

> It seems to work for me:
>
> "xml" should have 0s, so now.
> "rss" should have 1h.
> "png" should have 1M.
>
> $ curl -s -i http://127.0.0.1/a.xml | grep '^Content-Type\|^Expires'
> Content-Type: text/xml
> Expires: Tue, 04 Sep 2018 12:16:40 GMT
>
> $ curl -s -i http://127.0.0.1/a.rss | grep '^Content-Type\|^Expires'
> Content-Type: application/rss+xml
> Expires: Tue, 04 Sep 2018 13:16:41 GMT
>
> $ curl -s -i http://127.0.0.1/a.png | grep '^Content-Type\|^Expires'
> Content-Type: image/png
> Expires: Thu, 04 Oct 2018 12:16:42 GMT

Hello Francis - thank you very much for your sanity check, greatly appreciated.

I stripped down and rebuilt the `map` this morning and now I'm seeing successful caching values. I am not certain what changed, and a before-and-after diff shows nothing of value, so I must put it down to user error.

> Can you do a test like the above, and show the Content-Type that is
> received as well?

I confirm it's working as expected now, Content-Type and Expires is received correctly.

Thank you for your time and attention.
Subject Author Posted

Set `expires` by MIME type

petecooper September 03, 2018 04:13PM

Re: Set `expires` by MIME type

Richard Stanway September 04, 2018 07:10AM

Re: Set `expires` by MIME type

Francis Daly September 04, 2018 08:22AM

Re: Set `expires` by MIME type

petecooper September 04, 2018 09:41AM

Re: Set `expires` by MIME type

Francis Daly September 04, 2018 11:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 83
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready