I am trying to get several resource files from the server using one http request. The set of resource files is different on every http request. So the zip file needs to be created dynamically.
The best idea I have so far is to:
step1: Create a zip file containing the desired resource files using php. Similar to this http://davidwalsh.name/create-zip-php
step2: send the .zip file to the client in the browser and parse the files.
Is this the best way to do this? How do I pass a zip file to javascript and how can I store the contents of the zip file?