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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:38:06+00:00 2026-05-16T06:38:06+00:00

I believe this would be a more CPU friendly method, can it be implemented

  • 0

I believe this would be a more CPU friendly method, can it be implemented with php ?, instead of gzipping content for every request, I compress the files once and serve those instead =).

  • 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-16T06:38:07+00:00Added an answer on May 16, 2026 at 6:38 am

    Yes, this is quite easy to do with Apache.

    Store the uncompressed and compressed files side by side. E.g.:

    \-htdocs
      |-index.php
      |-javascript.js
      \-javascript.js.gz
    

    Enable content negotiation in Apache. Use:

    Options +MultiViews
    

    Now when “/javascript” is requested, Apache will serve the gzipped version if the client declares it accepts it (through Accept-encoding).

    Example of two HTTP requests (some headers omitted):

    Client claims to accept gzip

    GET /EP/Exames/2006-2007/exame2B HTTP/1.1
    Host: lebm.geleia.net
    Accept-Encoding: gzip, identity
    
    HTTP/1.1 200 OK
    Date: Fri, 13 Aug 2010 16:22:59 GMT
    Content-Location: exame2B.nb.gz
    Vary: negotiate,accept-encoding
    TCN: choice
    Last-Modified: Sun, 04 Feb 2007 15:33:53 GMT
    ETag: "0-c9d-428a84de03a40;48db6d490abee"
    Accept-Ranges: bytes
    Content-Length: 3229
    Content-Type: application/mathematica
    Content-Encoding: gzip
    
    ‹áüÅE
    (response continues)
    

    Client does not claim to accept gzip

    GET /EP/Exames/2006-2007/exame2B HTTP/1.1
    Host: lebm.geleia.net
    Accept-Encoding: identity
    
    HTTP/1.1 200 OK
    Date: Fri, 13 Aug 2010 16:23:14 GMT
    Content-Location: exame2B.nb
    Vary: negotiate,accept-encoding
    TCN: choice
    Last-Modified: Sun, 04 Feb 2007 15:33:53 GMT
    ETag: "0-257f-428a84de03a40;48db6d490abee"
    Accept-Ranges: bytes
    Content-Length: 9599
    Content-Type: application/mathematica
    
    (************** Content-type: application/mathematica **************
    CreatedBy='Mathematica 5.2'
    (response continues)
    

    See a more complete version here http://pastebin.com/TAwxpngX

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

Sidebar

Related Questions

Alright, so I'm trying to achieve whats in this image: I believe this would
I cant believe this, i always throught the below would be concurrency safe. I
I believe this code may require more effort to comprehend than average, so I'm
I believe this is a beginner's CSS question. I am utilizing the method described
I believe this is a fairly simple question but it is something I am
I believe this question might have been previously attempted in 2006 on a different
I believe this question applies to any of the For Html helpers, but my
I believe this questions has been asked in some or the other way but
I believe this question applies equally well to C# as to Java, because both
I believe this to be related partially to short-circuiting logic, but I couldn't find

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.