6 ms·
They'll be infinitesimal faster for the server which will sit idle most of the time anyway... and much slower for you when you make a minor header/footer mod lo
by mantrax2 13y ago
They'll be infinitesimal faster for the server which will sit idle most of the time anyway... and much slower for you when you make a minor header/footer mod locally, and then you need to re-upload all pages that have a header (i.e. all pages).
I'm sorry, but this project feels more like "art" than a practical tool.
Plus, with a few basic lines of PHP (available on every shared host) you can pre-generate your site statically as well (and on the server, to save you the re-uploading).
- oneeyedpigeon 13y agoPresumably the 're-upload all pages' bit can be automated. As far the reset, the trade-off depends on how often you're updating content versus the amount of traffic coming to your site; in many cases, a tiny saving on frequently-occurring page delivery is well worth a big delay on one-off page generation.
- TheZenPsycho 13y agoSo basically, we've gone down a path of solving problems we've created ourselves.
- nawitus 13y ago>and much slower for you when you make a minor header/footer mod locally, and then you need to re-upload all pages that have a header You should automate that with Grunt or Gulp. Static .html pages is best practise these days instead of dynamic templating.
- eevee 13y agorsync will easily handle a few lines changed in a large number of files. Or you could just, y'know, run the static site generator on the server. What Linux doesn't have Python installed?
- TheZenPsycho 13y agoor you could just, 'y'know, run SSI. what web server doesn't have SSI? What problem are we actually solving here?
- YuriNiyazov 13y agoServing pure HTML files off S3 is pretty popular. No SSI there.
- TheZenPsycho 13y agohttps://news.ycombinator.com/item?id=7432097 https://news.ycombinator.com/item?id=7432097 also, which is it. are we on s3 or on a linux server with python?
- eevee 13y agonginx?
- TheZenPsycho 13y agohttp://nginx.org/en/docs/http/ngx_http_ssi_module.html http://nginx.org/en/docs/http/ngx_http_ssi_module.html
- eevee 13y agoHa, color me surprised then :)