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
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