8 ms·
A fine line, but static pages will be slightly faster than SSI. Edit: Although what would be really nice would be the same kind of pre-processor that works wit
by oneeyedpigeon 13y ago
A fine line, but static pages will be slightly faster than SSI.
Edit: Although what would be really nice would be the same kind of pre-processor that works with apache ssi directives
- mantrax2 13y agoThey'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 :)
- TheZenPsycho 13y agomod_disk_cache and mod_mem_cache make that pretty irrelevant. http://httpd.apache.org/docs/2.2/mod/mod_disk_cache.html http://httpd.apache.org/docs/2.2/mod/mod_disk_cache.html re:edit hxincl uses a similar style as ssi but with a couple of enhancements: http://manpages.ubuntu.com/manpages/trusty/en/man1/hxincl.1.html http://manpages.ubuntu.com/manpages/trusty/en/man1/hxincl.1.... if you want exactly SSI syntax, ain't nuthin' stopping you from pointing curl at localhost.