Is there a way to get multiple files from S3 (or any CDN) in one request?
For example, I have four files on S3:
- example.com/cdn/one.js
- example.com/cdn/two.js
- example.com/cdn/three.js
- example.com/cdn/four.js
I would like to be able to request any combination of them at a time. I currently have to include them separately:
<script src="example.com/cdn/one.js" />
<script src="example.com/cdn/two.js" />
But I would like to include them as one request:
example.com/cdn/code.js?one&two
I've considered combining the needed combinations into single files, but there will be way too many combinations for that to be realistic. I've also considered combining all of them into one file, but that would be ridiculously large.