DEV Community

Discussion on: Conditional GETs explained (with Node.js)

Collapse
 
huynhkhanh226 profile image
huynhkhanh226

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!

Collapse
 
4shub profile image
Shubham Naik

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.