How to make router as a CDN node?

I wanna make router with openwrt as a CDN node.
It's will pre-download content from certain website source.
If I wanna access the website resource, router with openwrt will check local storage (like usb disk or NAS) to find out is there has that asset. If has, return it locally, if not, find it in remote website.

I donot know how to start it, has anybody has ideas?

you can try here:

1 Like

Awesome! Thanks a lot!