PDA

View Full Version : gzip compression on jspacker.ashx



dunivan
04-27-2010, 01:26 PM
I am trying to do this through htaccess, and have tried both deflate by extension and text/js, but cannot solve this .ashx issue.

Have tried deflating by extension, but to no avail

any tips?

wige
04-27-2010, 11:41 PM
ASHX files are ASP.net, which is generally only supported on Windows servers. .htaccess is not supported by Windows servers. What type of server are you using?

dunivan
04-27-2010, 11:44 PM
im using a linux server, but migrated the site from a windows server. the .ashx file is still active and running a scroll box on the site.

wige
04-28-2010, 10:02 AM
My guess then is that your Apache server does not know what type of file this .ashx file is. If the file is serving pure javascript, you might want to try renaming it to whatever.js and see if it gets compressed properly.

dunivan
04-29-2010, 03:42 PM
My guess then is that your Apache server does not know what type of file this .ashx file is. If the file is serving pure javascript, you might want to try renaming it to whatever.js and see if it gets compressed properly.

this worked! thank you!

jameandrew
05-04-2010, 01:30 AM
Apache dont understand the file name with extension .ashx so its better to rename the file or you have to re qrite the entire code in some other language.This is the drawback which apache is having and i am sure they will rectify it up in the next update.