-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Fred,
Fred Toth wrote: > I was in fact able to solve this with a simple filter, though this is not > a general solution. In hopes that this helps someone else, the filter > is included below. i like what you're done here, but it's odd that the DefaultServlet does not include this header by default -- regardless of the file type (you have selected only PDF in your filter, which is probably a safer implementation). > if (uri != null && uri.endsWith("pdf")) { > res.setHeader("Accept-Ranges", "bytes"); > } Why not simply enable this filter only for *pdf requests using <filter-mapping>? It will probably run faster and make your code simpler. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjQJ6kACgkQ9CaO5/Lv0PBg0gCfdZkbKMUyaRk7aej8+hkDVzRP LCUAnR8H5sYdEdsGfJ00utSLnuEJmsgm =HnHL -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]