[Openstack] Swift And Custom HTTP Reponse Headers
clay.gerrard at gmail.com
Thu Aug 7 19:34:13 UTC 2014
No, i was thinking of "allowed_headers", when I add:
allowed_headers = expires
to my object server config and restart I can get an expires on there:
vagrant at kinetic-swift:~$ curl -H 'x-auth-token: XXX'
http://localhost:8080/v1/AUTH_test/test/test -XHEAD -I
HTTP/1.1 200 OK
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Last-Modified: Thu, 07 Aug 2014 19:34:54 GMT
Date: Thu, 07 Aug 2014 19:36:17 GMT
I bet that would mostly work with other headers too. Is that what you're
looking for Brent?
On Thu, Aug 7, 2014 at 10:24 AM, Samuel Merritt <sam at swiftstack.com> wrote:
> On 8/7/14, 9:25 AM, Brent Troge wrote:
>> I am considering building out a Swift cluster to act as an origin to
>> some edge cache servers. Are there any readily available API
>> extensions(preferably OSS) which allow for setting max-age and expires
> There's https://github.com/dpgoetz/sos. I haven't personally used it, but
> it's Apache-licensed, and if you grep around in there for Expires and
> Cache-Control, they're both mentioned.
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/
> Post to : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Openstack