title: If I used gzipped JavaScript files, I get illegal character/token errors in both Chrome and Firefox
body: <p>I'm using the built-in server on my MacBook.</p>
  
  <p>Say my script is foo.js. This works in both my test browsers (Firefox 10, Chrome 17):</p>
  
  <pre><code>&lt;script type="text/javascript" src="foo.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>If I gzip the file, however, both browsers will give me an illegal token/character error after I change the above line to this:</p>
  
  <pre><code>&lt;script type="text/javascript" src="foo.js.gz"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>What gives? Does the type need to be changed too or something? Where is this kind of practice documented? Whenever I see it mentioned on the web to "zip your scripts!", no one ever bothers to mention that you need to do anything special with the links.</p>