Turn off Chromes data saving optimization

I'm having problems uploading images to a website in Chrome. Now I realized that if you manually disable the Chrome data save feature, everything will be fine.

The documentation in Chrome describes how to disable this feature, but I cannot get it.

I tried adding Cache-Control: no-transformusing the html tag, and also adding header("Cache-Control: no-transform")- but both of them did not work.

Any ideas?

+4
source share
1 answer

Thinking again about my question, I realized that I do not need to disable caching in my PHP file than on images. Therefore, I used the htaccess file as shown below:

<FilesMatch "\.(gif|jpg|jpeg|png|gif)$">
    Header set Cache-Control "no-transform"
</FilesMatch>

Now caching of all images has disappeared, and the site is working fine.

+3
source

All Articles