Is there any way to distribute JS Lib from AWS CloudFront with ETag header (for caching control) and with Compression (only for clients that support it) using S3 as origin?
As I understand I can: 1) Upload JS Lib (uncompressed) on S3, enable auto compression on CloudFront - but I lose ETag header, in this case, that means I lose ability to update quickly JS Lib on the client side
2) Upload JS Lib (already compressed) on S3: - but I lose clients that do not support compression
3) Use own Origin instead of S3 and control compression by myself: - I lose S3's hight durability and I have setup and manage Origin by myself
Is there 4th way that would not have disadvantages that I described above?