Serving gzip compressed Scriptaculous and Prototype with ColdFusion
- I added credits for each library at the top of that file.
- Gzip the file.
Here is how to do it with ColdFusion. For this demonstration, the files are named:
It’s important that your charset is ISO-8859-1.
This is the contents of prototype1601scriptaculous181.cfm:
- If not, it sends the uncompressed js data.
In my free time (HA) I’ll create and post PHP, ASP, Ruby, etc version as well. Or if someone else would like to do it I’d gladly post them here.