B billzhan Active Member Licensed User Longtime User Jan 14, 2014 #1 Hi, I am working on an app based on the Http Server lib, and I have no idea on how to set the cache control for js and images. Here is the scenario: my app is working as server per the http post requests, and it return html/js/image as responses.The js and image contents are static, while the html content may change from time to time. This app is planned to work in a public network with mobile/desktop web browse,so I need to make the js/image cached in client's web browse after its first visit(e.g. 1 month ).I searched and found something: link Please help me. Thanks in advance. Bill
Hi, I am working on an app based on the Http Server lib, and I have no idea on how to set the cache control for js and images. Here is the scenario: my app is working as server per the http post requests, and it return html/js/image as responses.The js and image contents are static, while the html content may change from time to time. This app is planned to work in a public network with mobile/desktop web browse,so I need to make the js/image cached in client's web browse after its first visit(e.g. 1 month ).I searched and found something: link Please help me. Thanks in advance. Bill
Erel B4X founder Staff member Licensed User Longtime User Jan 14, 2014 #2 It is currently not possible to implement such cache with HttpServer library. Upvote 0
B billzhan Active Member Licensed User Longtime User Jan 14, 2014 #3 Thank you for your fast response. Bill Upvote 0