Hello, I have a simple http request that serves a pdf file that gets generated and overwritten often, my problem is that all browsers serve a cached version of the file, not the newer file in the server, how can I fix this? I read online that such problem can be fixed with configuring expiring headers in a .htaccess file, but my understanding is that the .htaccess file is an Apache file, so this wouldn't work in node-red, any idea on how to solve this ? thanks in advance
I found the solution in Cache headers in Express js app
I added two headers to the response node
I would appreciate to know if there's a better solution.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.