Jump to content

Delays attached file downloads


g87

Recommended Posts

Hello,

The problem I encounter is somewhat unusual and does not happen on other shops (other hosting).

A customer has a shop hosted on a server under CentOS/Plesk 11. The version of PrestaShop is 1.5.6.0.

Some products have attachments that you can download, but the download is extremely slow: more than a minute for a 5 MB file!
On Firefox for example, the download progress bar freezes during the duration of the download and then, 100% in a split second. The same problem occurs in other browsers.

I think the readfile function must be a problem on this hosting and I suspect a configuration that does not function properly.

I tried to place the same file on a hosted elsewhere shop and the file is downloaded quickly without problems.

If I try to access the file by its URL (on slow hosting) charging is also done smoothly, quickly, and general shop displays in times quite correct.

Has anyone ever encountered this? Is there a configuration or parameter in Plesk it would modify or control?

Note that I have access to server configuration files, unlike a shared hosting.

Thank you in advance

g87

Link to comment
Share on other sites

Thank you for your reply.

 

I tried it and unfortunately, it doesn't work.

 

Attached files are PDF and I tried the following code too and it doesn't work :

SetEnv no-gzip dont-vary
AddType application/pdf .pdf

Is the code I tried correct?

 

Thank in advance for your help.

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...