Roman said:
Same as for gzip compression on the fly
I think they are quite different. Servers negotiate whether the client can
accept zipped files or not and may serve either compressed or uncompressed.
For minified JS files, the same file is sent to all clients so the
minified file should be created, tested and used as-is.
Further, a zipped file is much more robust and virtually guaranteed to be
identical when opened by the client. The zip/unzip and negotiation stages
can all be tested and verified, then applied to a general case. The
results of minification aren't, they must be tested by the individual site
and file and therefore can't be applied in general.
the server may keep the cache
but I think it does not keep gzip-ed versions of pages on persistent
storage. But different servers may act differently too.
Yes, in that respect they are the same but so is any cached data.
[...]