You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 14, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 14, 2020. It is now read-only.
Would it be possible to extend the image discovery to use HTTP headers (HTTP_X_AC_DISCOVERY?) in the case that the content-type is not text/html? Is there a way to work around this, or would a PR for this type of extension be appreciated? :)
I'm not sure if using a custom HTTP header is a good idea since the HTTP Caching RFC does not require caches to store non-standard headers.
If a cache chooses to ignore the Ac-Discovery header, then this discovery feature would not work for clients relying on the cache to retrieve the container image.
Perhaps I can recommend the use of Content-Location, although it can only contain an absolute or partial URI (template url?). Another header would likely be needed for the prefix portion, such as Content-Type or other..
Activity
philips commentedon Dec 9, 2014
Adding a section to the spec saying that a header might be returned too is fine with me.
Aside: the
X-prefix on HTTP headers has been deprecated: https://tools.ietf.org/html/rfc6648philips commentedon Dec 9, 2014
@bacongobbler Would you be willing to spec this out and add it to the app-container/discovery package?
philips commentedon Dec 9, 2014
From @bacongobbler on December 5, 2014 18:13
certainly!
philips commentedon Dec 9, 2014
From @jonboulle on December 5, 2014 18:37
@bacongobbler please make sure to discuss the precedence/behaviour when both tags and headers are available, too :-)
philips commentedon Dec 9, 2014
From @bacongobbler on December 5, 2014 18:40
of course. I'll whip up a PR to propose the change to the spec, which then you guys can all criticize before I start working on a solution.
philips commentedon Dec 9, 2014
From @blalor on December 5, 2014 19:8
I feel like there should be a DNS component to this, as well. Perhaps a
TXTrecord?philips commentedon Dec 9, 2014
From @geekgonecrazy on December 8, 2014 14:59
I second @blalor suggestion. While a meta tag is easy enough to add. It'd be easier to use an api to change a TXT record.
aw commentedon Jan 25, 2015
Hi,
I'm not sure if using a custom HTTP header is a good idea since the HTTP Caching RFC does not require caches to store non-standard headers.
If a cache chooses to ignore the
Ac-Discoveryheader, then this discovery feature would not work for clients relying on the cache to retrieve the container image.Perhaps I can recommend the use of
Content-Location, although it can only contain an absolute or partial URI (templateurl?). Another header would likely be needed for theprefixportion, such asContent-Typeor other..[-]appc: support HTTP headers for discovery[/-][+]spec: support HTTP headers for discovery[/+]Merge pull request appc#7 from mbohlool/master