I'm using .NET and the simple question is:
How or can I let the web browser know that
<script type="text/javascript" src="/Scripts/myjsfile.js"/>
is gzipped?
can I just append .gz
to the source?
This article, which is pretty cool, shows how to to compress my dynamic html by plugging into the Response.Filter stream object to return gzipped content. But my css/js isn't dynamic so I don't see the point in wasting cpu cycles to zip for every single request.
So how do I tell the web browser that it's zipped content, or does it already know?