A testbed for the Preview HTTP response header field. The playground is not written yet. The movie site behind it is running, and the same pages are served in five ways:
| Route | How the preview metadata travels |
|---|---|
/current/603 | Open Graph tags in the page, as today |
/header/603 | The Preview field, on GET and HEAD |
/link/603 | Attributes of a Link header with rel="preview" |
/conneg/603 | JSON for Accept: application/preview+json |
/byref/603 | A Link header to /byref/603/preview.json |
on four hosts:
| nocache.http-test.online | nginx as a proxy, no cache |
| cache.http-test.online | nginx with its own cache |
| cf.http-test.online | behind Cloudflare with default settings |
| cf-cache.http-test.online | behind Cloudflare with a Cache Everything rule |
Try it: curl -I https://nocache.http-test.online/header/603
Source: github.com/Liksu/http-preview-header
Movie data and images from TMDB. This product uses the TMDB API but is not endorsed or certified by TMDB.