Hi,
I tested my site with some performance tool. I got this error. I am not sure how I can fix it.
Serve resources from a consistent URL
The following resources have identical contents, but are served from different URLs. Serve these resources from a consistent URL to save 1 request(s) and 17.4KiB.
http://xxx.com/sites/default/files/HOMES4U_LOGO.png
http://www.xxx.com/sites/default/files/HOMES4U_LOGO.png
I did upload my logo under appearance > bootstrapsubtheme. Using css, I hide it for desktop. Displayed the logo in mobile.
I created a php logo block for desktop as follows. I am not sure it is because of that.
<a class="logo" href="/" title="<?php print t('Home'); ?>">
<img src="<?php $logo1 = "/sites/default/files/HOMES4U_LOGO.png";
print $logo1; ?>" alt="<?php print t('Home'); ?>" />
</a>
Please advise how I can fix it.
Thanks.
Comments
Have you tried using the full
Have you tried using the full explicit address for the image in your code, instead of the relative path, as a workaround to make them match?
Want to create new portal for video classes
Dear Team
i want to sell video classes on 3rd party commission basis at my website https://caknowledge.com/ on subdomain, how can i setup a e-commerce store on my site and how can i get a payment gateway, i am from india. please guide me as soon possible....
=-=
your question has nothing to do with the already existing discussion and deserves its own thread rather than hijacking this one.
Module or rewrite url?
I am looking for a solution for this:
The following resources have identical contents, but are served from different URLs. Serve these resources from a consistent URL to save 2 request(s) and 161.3KiB.