ninenines / cowboy

Small, fast, modern HTTP server for Erlang/OTP.
https://ninenines.eu
ISC License
7.29k stars 1.17k forks source link

Add an option to cowboy_static to do server push of dependent files #1194

Open essen opened 7 years ago

essen commented 7 years ago

Maybe just a list of related files would be enough. Then if we statically serve some HTML, we can put the CSS/JS in the list and it will be pushed in the given order.

essen commented 11 months ago

Worth pointing out that browsers are moving away from server push. So this is not a priority at all. This might be useful in specific REST API scenarios but I don't think those would need cowboy_static much.