I would use an add-on library that used a filesystem directory to cache generated zip files, and responded to subsequent responses for the same zip file with the cached zip. The cache would hash all the inputs to the zip file to generate the zip. The library could be more general than zip files.
I would use an add-on library that used a filesystem directory to cache generated zip files, and responded to subsequent responses for the same zip file with the cached zip. The cache would hash all the inputs to the zip file to generate the zip. The library could be more general than zip files.