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 8978069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:31:13+00:00 2026-06-15T19:31:13+00:00

file size gzip size file js 217.4K 217.4K js/scripts-0004.min.js css 53.3K 53.3K css/style-0004.min.css why

  • 0
file    size    gzip size     file
js      217.4K  217.4K        js/scripts-0004.min.js
css     53.3K   53.3K         css/style-0004.min.css

why does gzip return files with the same size?

do they need additional packages for gzip on ubuntu 12.04 + python + nginx server.

nginx.conf

http {

##
# Gzip Settings
##

gzip on;
gzip_disable "msie6";

gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

}

>>> r = urllib2.urlopen(urllib2.Request('/style-0004.min.css', ... headers={'Accept-Encoding': 'gzip;q=1.0, *;q=0'})) 
>>> print r.info() 
Server: nginx/1.1.19 Date: Thu, 13 Dec 2012 11:21:53 GMT 
Content-Type: text/css 
Transfer-Encoding: chunked Connection: close Vary: Accept-Encoding 
Expires: Thu, 31 Dec 2037 23:55:55 GMT 
X-UA-Compatible: IE=Edge,chrome=1 
Content-Encoding: gzip 
>>> s = r.read() 
>>> print("comressed size: %d" % len(s)) 
comressed size: 12231 
>>> f = gzip.GzipFile(fileobj=BytesIO(s)) 
>>> print("uncompressed: %d" % len(f.read())) 
uncompressed: 53337

js file. comressed size: 63975 uncompressed: 217473
  • 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-06-15T19:31:15+00:00Added an answer on June 15, 2026 at 7:31 pm

    There’s a problem with my current browser. Chromium for ubuntu 12.04.
    I tried checking the gzipped files on mozilla firefox and i received the compressed files.

    But I could not figure out why its happening with this browser because it fetches compressed files from other domains like facebook, google. and not mine!

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

Sidebar

Related Questions

I need to compress a file using GZip by batch of specified size (not
To get the file size for every file in a list of files, I'm
I have a text file that is 310MB in size (uncompressed). When using PerlIO::gzip
I'm getting an IO exception The stream size in GZip footer does not match
How can I validate file size from client side. It can be controlled via
How to get file size of pdf,gif,doc etc using xcode. suppose to i get
I can do File.size(path) to get the size of a file in bytes. How
What is the maximum file size 32 bit java can access? Is this architecture
Language: vb.net File size: 1GB, and stuff. Encoding of the text file: UTF8 (so
How do I get the file size and date stamp of a file on

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.