12 ms·
I made a SaaS does this: https://www.prerender.cloud/ https://www.prerender.cloud/ curl https://service.prerender.cloud/screenshot/https://google.com/ > out.
by jotto 8y ago
I made a SaaS does this: https://www.prerender.cloud/ https://www.prerender.cloud/
curl https://service.prerender.cloud/screenshot/https://google.com/ > out.jpg
and a chrome extension that doesn't return a screenshot, but:
1. disables JavaScript
2. pre-renders the site (executes the JS)
3. returns HTML
https://chrome.google.com/webstore/detail/prerendercloud-disable-js/bdbogimamneemjcpjaoeemndoopldiig https://chrome.google.com/webstore/detail/prerendercloud-dis...
https://github.com/sanfrancesco/prerendercloud-chromeextension https://github.com/sanfrancesco/prerendercloud-chromeextensi...
- 3pt14159 8y agoThis is almost exactly what I want. I have two things that I still want thought: 1. (And this is obvious, I know, but...) I want to run your stack on my own gear. 2. I want this to work on my phone, which is, unfortunately an iPhone so browser extensions are blocked by Apple policy. I'd have to create my own browser. Yuck. As an aside, are you caching public tweets, etc, by any chance?
- jotto 8y ago2 layers of caching: 1. a configurable cache per URL that defaults to 5-minutes (can be disabled or increased up to 1 month) 2. and non-configurable http caching within chrome (cache-control headers), but since the cluster is auto-scaled, this cache naturally purges every few hours.