3 ms·
I agree, its not a good approach in general. Correct cache headers on the server is probably the way to go in many cases. I originally created this handle work
by d0ugal 15y ago
I agree, its not a good approach in general. Correct cache headers on the server is probably the way to go in many cases.
I originally created this handle working with an external API in a simple static files only app. It works really well for that usecase and solved my issues. It was then easy to make in a general way, so I decided to chuck it out in the wild and see if I can help anybody else.
Perhaps I should add an area to the README to define when you should (and maybe more importantly when you shouldn't) use this.