The problem was that web hosting adds HTTP header Content-Encoding: gzip
for all the PHP content even when the Content-Type: image/jpeg
is in the output from that script. For the hotfix I added HTTP header Content-Encoding: none
into that script. And it worked. But now I am asking web hosting provider to not add the wrong header if Content-Type: image/jpeg
is present. At HTTPS it makes sense.
Related Posts:
- navigate back with PHP form submission
- xajax expanding list query
- Email Not Sending from Byethost Hosting
- Send email with PHP from html form on submit with the same script
- HTML Element Array, name=”something[]” or name=”something”?
- what does a .php?id=&value=value means?
- Creating a search form in PHP to search a database?
- Why php tag is not working in html file?
- How do you parse and process HTML/XML in PHP?
- What is the difference between the ‘www’ folder and ‘htdocs’ folder?
- PHP mail function doesn’t complete sending of e-mail
- PHP $_POST not working?
- The character encoding of the HTML document was not declared
- Notice: Undefined offset: 0 in
- Do I need a !DOCTYPE declaration in a php file with html?
- Generate PDF from HTML PHP
- POST an array from an HTML form without javascript
- Replace ' and similar html codes with their correspondent character?
- How to prevent the “Confirm Form Resubmission” dialog?
- How to fix “Headers already sent” error in PHP
- http://localhost:80 is not working on running Apache server through UniServer ZeroXIII
- How do I get PHP errors to display?
- Get the full URL in PHP
- How to force file download with PHP
- How to Set Category Page as Home Page in Prestashop
- Parse error: Syntax error, unexpected end of file in my PHP code
- Getting an error when I visit http://localhost
- What are the differences in die() and exit() in PHP?
- Expected status code 200 but received 500
- Can you “compile” PHP code and upload a binary-ish file, which will just be run by the byte code interpreter?
- Invalid argument supplied for foreach()
- Remove the last character from a string
- How to prevent Browser cache for php site
- Get Current URL in Magento and show something
- Weird PHP error: ‘Can’t use function return value in write context’
- How do I get a YouTube video thumbnail from the YouTube API?
- How to call function of one php file from another php file and pass parameters to it?
- SQLSTATE[HY093]: Invalid parameter number: parameter was not defined
- Is it possible to run .php files on my local computer?
- Convert php array to Javascript
- phpMyAdmin ERROR: mysqli_real_connect(): (HY000/1045): Access denied for user ‘pma’@’localhost’ (using password: NO)
- SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 102
- What does MYSQLI_NUM mean and do?
- Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted (CodeIgniter + XML-RPC)
- Laravel 5 Clear Views Cache
- ERROR: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it
- What does double question mark (??) operator mean in PHP
- How can I find the php.ini file used by the command line?
- Check if a PHP cookie exists and if not set its value
- How to integrate WordPress with Angular 8 for website?
- Fatal error: Maximum execution time of 30 seconds exceeded
- cURL request in Laravel
- PHP array printing using a loop
- How to send to BCC address when using PHPMailer to format MIME message for Gmail API?
- PHP: fopen() Permission denied
- How should I be setting browscap.ini file
- CodeIgniter: Unable to connect to your database server using the provided settings Error Message
- Returning JSON from a PHP Script
- Can I store images in MySQL
- MySQL Daemon Failed to Start – centos 6
- How to remove index.php from WordPress site URL
- How to generate .json file with PHP?
- Call to a member function on a non-object [duplicate]
- Call to a member function fetch_assoc() on boolean in
[duplicate] - Avada theme wordpress customization
- WordPress Bootstrap Handburger Menu Wont Open
- WordPress custom taxonomy description for each post?
- Conditional statement for parent, child and grandchild pages
- HTML table from shortcode with multiple parameters
- Add itemprop Schema.org Markup to li Elements in wp_nav_menu
- How Display Posts on category
- ACF page while loop breaks footer while loop
- Embed html in php code
- Position banner to right of logo in header – messed up my header file
- How to separate HTML and WordPress files
- Syntax error when I try to insert my loop into an unordered list? [closed]
- How to make modifications only to certain elements of an HTML string on the server-side?
- Printing HTML codes
- How to retrieve the data from the sever and displaying it in a page?
- How to execute html code inside php?
- wp_insert_post() with HTML tags using PHP
- Remove   from the_excerpt
- html form: redirect page after form completes submit function and posts data
- Add other class content with reference class value
- Configure WordPress to Use Responsive Image Rendering
- HTML comment cause issue in functions.php script root
- Slug duplicates once clicking on link
- Getting a Post ID to show its content in a Popup
- How to change a wordress plugin php code in my child’s functions.php file?
- How to find and delete a menu item in php?
- make p tag collapsed after 3 rows
- My single.php page skips the first div tag
- WordPress Slider is not working
- How to display post meta bellow every posts
- Switch position of elements in the footer [closed]
- WordPress HTML Helper
- get_post_meta is always empty when I use wp_mail
- Implement “No related posts for this entry” into the loop?
- Advanced Custom Fields Show PHP in Text Areas
- How to create different woocommerce single_product.php pages for each product? [closed]