Skip to content

Cache #1

krzysztofantczak opened this Issue Mar 13, 2013 · 1 comment

2 participants


Any ideas how to setup cache for rendered html on nginx level and how to flush it when it's needed? On high load websites calling phantomjs instance with each request can be bad idea, am i right?

steeve commented Mar 18, 2013

Well, you should only call PhantomJS when Google asks for a page.
Sure, you could implement caching, but with caching comes cache invalidation and you're entering a world of pain.

But if you really want caching you can have Nginx cache the pages to disk for you, or use Varnish.

But then again remember you're only serving these pages to bots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.