Can’t Download Files (PDFs, .json, .ical) When WP Rocket is Active

If your site is hosted by OVH, you might encounter issues where certain files (like PDFs, .json settings files, or .ical export files) cannot be downloaded when WP Rocket is active.

This is an OVH-specific problem caused by a conflict between WP Rocket’s .htaccess compression rules (mod_deflate) and OVH’s server configuration. The exact reason is still being investigated, but removing WP Rocket’s compression rules resolves the issue.

Common Scenarios Affected:

  • PDF Downloads: PDFs offered for download on your site fail to download when WP Rocket is active.
  • iCal File Export (.ical): Downloading iCal files may also fail under similar circumstances.
  • WP Rocket Settings File (.json): When trying to download your WP Rocket settings file, you may encounter the following error in your browser: /Users/user/Downloads/XxYkKVhW.json.part could not be saved, because the source file could not be read.

To fix this problem, you will need to remove our compression rules with the following helper plugin:

📥   Download (.zip):  WP Rocket | Remove mod_deflate rules
Developers: you’ll find the code for this plugin on GitHub.

Just install and activate it, there’s no option. It will automatically update the htaccess rules.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.