Apache deflate not working with prototype.js?1234

I’m trying to compress javascript files using apache’s deflate. Here is
my
config:

AddOutputFilterByType DEFLATE text/html text/xml text/plain text/css
application/x-javascript text/javascript;
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

When I load the page I look in firebug and /prototype.js?1204654418 is
76kb.
If I open that same file by itself and remove the ?1204… it’s only
22kb

What is the point of the ?23847 and am I right to assume that it is
effecting the deflate rules?

Also, I came across this line but adding it doesn’t seem to help:

RewriteRule “^/(images|stylesheets|flash|javascripts)/?(.*)” “$0” [L]

Thanks!

I’m not sure but try this:

AddOutputFilterByType DEFLATE application/x-javascript

Enable deflate logging for debug

DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio

LogFormat ‘"%r" %{outstream}n/%{instream}n (%{ratio}n%%)’ deflate
CustomLog logs/deflate_log deflate

This will give you the log that will tell you what mod deflate is
doing…