Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The downside there is performance overhead.

If a user requests "/foo/bar/baz" you have to allow your webserver to stat "/foo/bar/baz/.htaccess", "/foo/bar/.htaccess", and "/foo/.htaccess" which can be a significant performance hit.

SSIs have similar issues, parsing all files on the off-chance there is some magic that will be required.



This website doesn't need to scale. It doesn't matter.


You know your site best - but I'd suggest that being able to scale is just good practice.

You never know when your site is going to be posted to hacker news, or similar!


Premature optimization, yadda yadda ...


SSI performance overhead in nginx is negligible (you hardly notice any difference with static html, unless you shtml size is many megabytes).




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: