The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Site Optimization (compression)

Discussion in 'General Discussion' started by Jack.Straw, Sep 8, 2010.

  1. Jack.Straw

    Jack.Straw Member

    Joined:
    Nov 30, 2006
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Hello. I am using cPanel 11 and have enabled compression for all content. It works fine most of the time. However, from time to time when i click on an internal link (in firefox) i get presented with a download dialog box instead of being taken to the link location. Saving the file results in a file with a .part extension. The problem is not specific to any particular link as far as i can tell, and certainly doesn't happen every time for any given link. Can anyone explain why this is happening?

    Thanks for your time,
    -Scott
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    mod_deflate

    The "Optimize Website" icon is available in cPanel if mod_deflate is built into Apache. mod_deflate is an option in EasyApache. The documentation for mod_deflate is available here:

    mod_deflate - Apache HTTP Server

    In short, mod_deflate compresses site content before sending it to the browser. What is most likely happening, based on the ".part" extension you mentioned, is something is occasionally interrupting the transfer, and the browser does not get the entire compressed copy of the requested page. Because of this, it cannot extract it correctly, and you end up with a file with a .part extension.

    This is a potential problem with using mod_deflate. While it does make the site use less bandwidth, since less data are transferred over the network, it does increase the overhead on both the server and the client, and it introduces the possibility of a network interruption or other error being noticed more readily.
     
    #2 cPanelJared, Sep 8, 2010
    Last edited: Sep 8, 2010
  3. GaryT

    GaryT Well-Known Member

    Joined:
    May 19, 2010
    Messages:
    321
    Likes Received:
    3
    Trophy Points:
    16
    I had this issue once, Maily due to mod_security and max_execution times, See if you click a link which submits a query then it has a time to load period, If this does not load quick enough then it presents you with a "save as" Try increasing the max excution time slightly to avoid this.
     
  4. Jack.Straw

    Jack.Straw Member

    Joined:
    Nov 30, 2006
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    I recently noticed that it is not always a .part file, sometimes it offers up the actual PHP file. However, it does not actually deliver the real php file if you choose to hit download. I've increased the PHP max execution time and i haven't had the problem since. Thanks for all your help!!
     
  5. Jack.Straw

    Jack.Straw Member

    Joined:
    Nov 30, 2006
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Scratch that, the problem persists. I changed the max execution time from 90 to 600.
     
Loading...

Share This Page