3 ms·
If you want to just serve this one page quickly, you can take the result and save it as static page. Add a specific routing rule just for the url you submitted.
by viraptor 12y ago
If you want to just serve this one page quickly, you can take the result and save it as static page. Add a specific routing rule just for the url you submitted. (the page looks completely static anyway)
You can play with varnish once you don't have thousands of people who will actually want to read the contents you posted :) (a.k.a don't upgrade anything the day of the release)
- natural219 12y agoHaha. It's static. I've never actually written anything that anybody's read before, so I have no idea what point I need to start looking into a cache.
- viraptor 12y agoIf it's already static (ie. served from a generated static file), cache won't help you much (if at all). All reads will already come from the memory. Unless you have some crazy routing rules in the webserver, varnish is unlikely to be faster than direct serving. some old comparison for static files: http://nbonvin.wordpress.com/2011/03/14/apache-vs-nginx-vs-varnish-vs-gwan/ http://nbonvin.wordpress.com/2011/03/14/apache-vs-nginx-vs-v...
- natural219 12y agoThanks, this is a great read. I feared since my nginx configuration looks like this[1], something isn't being cached properly in memory, but it looks like I'm being overly paranoid. [1]https://www.dropbox.com/s/x2k7ms057xh7zkm/Screenshot%202014-06-12%2017.21.38.png https://www.dropbox.com/s/x2k7ms057xh7zkm/Screenshot%202014-...