What are you developing with, most static asset middleware should already come with it prebuilt. If you're using express, using express.static function should automatically come with etag support and caching.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Is there any way to do it automatically? I am also in need of this solution, but I want to do it automatically like static files.
Thanks for your solution!
Hi there - sorry for the delay.
What are you developing with, most static asset middleware should already come with it prebuilt. If you're using express, using
express.static
function should automatically come with etag support and caching.