top | item 22976713

Ask HN: What would you think of a new HTTP method named PREVIEW?

2 points| slowmotarget | 5 years ago

With the success of Open Graph, lots and lots of HTTP GET requests are sent every day to process only a few <meta> in the <head> of HTML pages.

I believe that this process could be lightened by the adoption of a new HTTP verb. By sending an HTTP PREVIEW /mypage we could leverage caching and write optimized database queries to return a light, serialized response for crawlers and bots.

3 comments

order

detaro|5 years ago

Why wouldn't this just be a new Content-Type to request?

slowmotarget|5 years ago

If this behavior is to be implemented through request headers, I'd prefer not to mess with Content-Type because it may be needed in the request: you could still want to PREVIEW but ask for a preferred content-type, like text/xml or application/json