We use DreamFactory 2.2.0 to host an AngularJS webapp which is stored in the Local file storage service, exposed via public path and configured as an app “on a provisioned file storage service” on the Apps section of the admin panel.
We noticed that when a new version of the webapp is deployed on the server, some browsers don’t detect the change in the source files and load the previous version. Some browsers may even load only some of the updated files, but not all of them, which makes our webapp inconsistent.
We actually verified that some browsers like Google Chrome don’t even request some of the webapp files. According to this Stack Exchange answer it may be caused by the
Expires and the
Last-Modified headers returned by the server.
The headers returned by the DF webserver look similar to this:
Cache-Control:private Content-Disposition:inline Content-Length:4976 Content-Type:application/json Date:Tue, 27 Dec 2016 10:32:36 GMT Expires:0 Last-Modified:Wed, 14 Dec 2016 10:00:28 GMT Pragma:public Server:Apache X-Frame-Options:SAMEORIGIN X-Powered-By:PHP/5.6.22
Is there any way to configured the cache headers of the files served from the Local file storage service?
Thanks in advance.