Better HN
topnewbestaskshowjobs
Log inSign up

hilverd

35 karma · joined Feb 15, 2020 (6y ago) · 6 submissions

Submissions

comment 2y ago · link · parent

This tool lets you explore how Varnish reacts to HTTP cache headers. I created it to help myself and others learn about HTTP caching semantics.

You can run it locally against a Docker-based Varnish instance, or try out some predefined examples (with hard-coded responses) on the demo website.

2.

Show HN: HTTP Cache Playground(cacheplayground.org ↗)

1 points · by hilverd · 2y ago · 1 comment

comment 4y ago · link · parent

Interesting, I hadn't considered that -- thanks. I was just having a look and it seems that right now, only Chrome and Edge (and Brave?) support that API. I'll keep an eye on it, because it doesn't seem like a viable option yet until Safari and Firefox also do.

comment 4y ago · link · parent

Thanks, I had been looking for existing glossaries with permissive licenses to use as examples, and this one wasn't on my list yet. It does look way larger than any of the other examples. But it would be interesting to explore what sort of changes would be required to the template to keep it usable in practice.

comment 4y ago · link · parent

Yes -- you beat me to it :-).

The built-in server is meant to be run only locally/offline (typically by a developer), just for making changes to a glossary. If you download and open the template (not one of the "full" examples) in a browser, then it tells you how:

sed -n '/START OF editor.js$/,$p' glossary.html | FILE=glossary.html node

Then you would host glossary.html (and maybe the CSS and JS if you don't want to point to the CDN) wherever you want, as it's just a static web page.

I will make this clearer in the documentation -- thanks!

6.

Show HN: Glossary page template with a built-in editor(glossary.page ↗)

52 points · by hilverd · 4y ago · 10 comments