Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3437150
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:01:47+00:00 2026-05-18T08:01:47+00:00

This platform I’m working on uses some mechanics to determine if it should do

  • 0

This platform I’m working on uses some mechanics to determine if it should do a <script> link to a straight up .js file or a .js.gz file, depending on browser type and version.

On the current server, everything works fine, and both js and js.gz files work, and the javascript is executed in the browser. However, transfer it all over, verbatim, to a new server, and suddenly Firefox stops using the gz files. It will download them (as can be seen using Firebug) but it’s not executing them.

Any ideas on why the gzipped files aren’t being used properly?

Response headers From Old

Date              Thu, 25 Nov 2010 17:06:32 GMT
Server            Apache
Last-Modified     Mon, 22 Nov 2010 21:31:00 GMT
Etag              "55808a3-3f1e-4ceae114"
Accept-Ranges     bytes
Content-Length    16158
Keep-Alive        timeout=15, max=100
Connection        Keep-Alive
Content-Type      application/javascript
Content-Encoding  gzip

Response Headers from New

Date               Thu, 25 Nov 2010 17:00:11 GMT
Server             Apache/2.2.17 (CentOS)
Last-Modified      Thu, 25 Nov 2010 16:11:00 GMT
Etag               "693c304-4178-495e2da08cd00"
Accept-Ranges      bytes
Content-Length     16760
Connection         close
Content-Type       application/x-gzip

I’m going to assume it’s from the Content-Encoding and Type, though I’ve no idea how to change this.

FIX
Taking the answers and comments into account, I made the following changed to /etc/httpd/conf/httpd.conf, where commented (#) lines are what was there, uncommented is my replacement:

# Technically just uncommented this line
AddEncoding x-gzip .gz .tgz

#AddType application/x-gzip .gz .tgz
AddType application/x-gzip .tgz
AddType application/javascript .gz
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:01:48+00:00Added an answer on May 18, 2026 at 8:01 am

    This will be a server side setting/module – clients don’t know how to handle gziped files however they usually know how to handle files compressed in transit as long as you tell them how you’ve compressed them using a Content-Encoding header.

    basicly i think you’ll find that the server isn’t sending a Content-Encoding: gzip header on the new server, but it is on the old.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm recently working on this platform for which a legacy codebase issues a large
I am new at this platform could anyone tell me which webservice i should
I'm working on a web platform which uses ASP.NET MVC and supports plugins. In
MY Table like this: id Tag platform 1 #class1,#class2 CS 2 #class1 PS 3
I'd like to do this in a platform independant way, and I know libpng
httpd = make_server('', 80, server) webbrowser.open(url) httpd.serve_forever() This works cross platform except when I
This is for the Apple platform. My end goal is to do a find
This isn't cross-platform code... everything is being performed on the same platform (i.e. endianess
This is in Java, cross platform and being debugged on a computer running Ubuntu
This has been a massive headache. We use Ning as a our platform for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.