Direct download assets get corrupted with minify HTML feature
-
One of our client pointed out that one of their downloadable PDFs can’t be opened after downloading. It’s fine when the file is viewed in the Media library. The file is downloaded via the file’s direct download link: https://site.com/download/?file_id=3963 Once I turned off the Minify HTML feature, the file becomes readable again. My guess is that the plugin doesn’t realize that the resource is not a HTML file. Perhaps exclude url/download/* or provide an exclude field similar to CSS and JS minification to avoid this issue? Currently I have to turn off the Minify HTML feature for now.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Direct download assets get corrupted with minify HTML feature’ is closed to new replies.