Gzip Favicon.ico
-
Hello. My favicon.ico file is not being gzipped. Is there any way to get around this? I tried adding some code to .htaccess but it did not work.
-
Hi,
Could you please provide the report number ?
You can get it from Toolbox —> Report.
Best regards,
Is there no other way to diagnose without doing that? My apologies, the site is a private one and the owner won’t let me share those details.
Hi,
OK , if you access directly on your browser to favicon.ico , what header does it show ?
or if you have curl , please run “curl -I -XGET https://domain.com/favicon.ico” and post the result.
Best regards,
I decided to upload a PNG favicon in the customiser instead of the root. It resolved the issue.
@qtwrk. I decided to reopen this topic because the previous answer I posted caused some issues with the other favicons on the site. Anyway, here are the HTTP headers with redacted site information (site is using LiteSpeed with cpanel on shared hosting).
HTTP/1.0 301 Moved Permanently => Connection => close Content-Type => text/html; charset=UTF-8 Expires => Wed, 11 Jan 1984 05:00:00 GMT Cache-Control => no-cache, must-revalidate, max-age=0 X-Redirect-By => WordPress Location => https://www.domain.com/favicon.ico& X-Litespeed-Cache => miss Content-Length => 0 Date => Sat, 20 Jun 2020 21:40:50 GMT Server => LiteSpeed Strict-Transport-Security => max-age=31536000 X-XSS-Protection => 1; mode=block Feature-Policy => accelerometer 'none'; camera 'none'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; payment 'none'; usb 'none' X-Frame-Options => SAMEORIGIN X-Content-Type-Options => nosniff Referrer-Policy => same-origin Alt-Svc => quic=":443"; ma=2592000; v="43,46", h3-Q043=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-25=":443"; ma=2592000, h3-27=":443"; ma=2592000Hi,
No , sorry , for whatever reason , WP forum attached something after my command
it should be
curl -I -XGET https://domain.com/favicon.icoBest regards,
Hi. Any easier way to do that without using a command line? I am not a developer. I used this site to check the HTTP header http://www.delorie.com/web/headers.html
Hi,
Try this
please post the full header result.
you can also use chrome dev tool
Best regards,
I got this in chrome
Request URL: https://www.domain.com/favicon.ico Request Method: GET Status Code: 304 Remote Address: xxx.xxx.xxx.xxx:443 Referrer Policy: no-referrer-when-downgrade accept-ranges: bytes alt-svc: quic=":443"; ma=2592000; v="43,46", h3-Q043=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-25=":443"; ma=2592000, h3-27=":443"; ma=2592000 cache-control: public, max-age=2592000 content-length: 15086 content-type: image/x-icon date: Mon, 22 Jun 2020 01:57:47 GMT expires: Wed, 22 Jul 2020 01:57:47 GMT feature-policy: accelerometer 'none'; camera 'none'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; payment 'none'; usb 'none' last-modified: Sat, 20 Jun 2020 21:30:19 GMT referrer-policy: same-origin server: LiteSpeed status: 304 strict-transport-security: max-age=31536000 x-content-type-options: nosniff X-DNS-Prefetch-Control: off x-frame-options: SAMEORIGIN x-xss-protection: 1; mode=block :authority: www.domain.com :method: GET :path: /favicon.ico :scheme: https accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 accept-encoding: gzip, deflate, br accept-language: en-GB,en-US;q=0.9,en;q=0.8 cache-control: max-age=0 dnt: 1 if-modified-since: Sat, 20 Jun 2020 21:30:19 GMT sec-fetch-dest: document sec-fetch-mode: navigate sec-fetch-site: none sec-fetch-user: ?1 upgrade-insecure-requests: 1 user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36Hi,
OK , then please try add
AddOutputFilterByType DEFLATE image/x-iconto your .htaccess
Best regards
I did. Like four days ago. I am not sure why it is not working.
This is from pingdom tools
accept-language en-US,en;q=0.8 accept-encoding gzip, deflate, br accept image/webp,image/apng,image/*,*/*;q=0.8 user-agent Mozilla/5.0 (X11; Linux x86_64) AppleWeb... cookie ls_smartpush=c pragma no-cache cache-control no-cache referer https://www.domain.com/Hi,
May I know what is your webserver ?
Best regards,
Litespeed? or what do you mean by my webserver?
I mean is it LiteSpeed Enterprise or OpenLiteSpeed ?
The topic ‘Gzip Favicon.ico’ is closed to new replies.