Hi guys,
I am experiencing some pretty strange behavior on our site. I will navigate to a brand page and sometimes the brand images will display, sometimes they won’t. The code responsible for displaying these images is as follows:
<img src="{SITE_PATH}img/brands/{product['product_brandname']}.png" alt="{product['product_brandname']}">
For example, the image below is a valid URL, but occasionally will not load properly.
http://ws4301-4323.staging.nitrosell.com/img/brands/TP-LINK.png
This is particularly strange to me because usually these types of issues follow one rule: it either works or it doesn’t. Any ideas?
Steps to recreate
- Navigate to this page
- Refresh the page
- Wait for it to load
- If the image doesn’t 404, then repeat steps 2&3
UPDATE:
- Refresh this post
- Observe image above…
Sometimes you have to navigate into the product page of one of these products to get it to error out, but most of the time this issue occurs when we first land on a page with a brand logo on it.
The above brands are just examples, this seems to occur with all brands and their images…