After switching the site to HTTPS, images in old articles are blank on the client side but load fine for us—does that mean we don’t need to touch the image library?
After a site switches from HTTP to HTTPS, images in old articles often turn blank. The common cause is not that images were deleted or the image host is down. Rather, the page itself is already HTTPS, while the image URLs in the article body still use http://, so the browser blocks them under Mixed Content policies. Based on common 2026 practice, the order is: first confirm it is protocol blocking rather than a real 404; then handle it with “change the protocol at the source + batch-replace existing body content + CSP directive as a fallback.” In most cases, you do not need to re-upload images one by one, nor manually edit links one by one.
What exactly does mixed content block, and why do problems remain after switching to HTTPS?
Mixed content means an HTTPS page loads HTTP resources. The browser judges by the protocol of the resource URL, not by whether the file exists. Images are passive mixed content. In recent years, mainstream browsers by default first try to upgrade an http:// URL to https://; if the upgrade fails, they no longer load it. Different browser engine versions vary in whether they “block” or “only warn,” which explains why the same article can be visible to one person and show only blank spaces to another.
The root cause of missed updates is that image URLs are often not handwritten: absolute URLs automatically added when pasting into a rich-text editor, http links returned by an image host, or body HTML imported as-is during an early site migration. Changing the certificate or redirecting the homepage to HTTPS does not change that body string in the database, so the front end looks like a new site while the article body still contains old addresses.
First distinguish protocol blocking from a file that is really gone
Many teams do this in reverse: as soon as they see a blank image, they start changing links, and it is still blank afterward. A reasonable order is first confirm whether the resource exists, then confirm whether it is allowed to load.
- Check the console and Network panel: if you see Mixed Content or blocked, or the request is marked as canceled, investigate the protocol direction;
- Open the image URL directly in a new tab: if it opens, the file is alive and the problem is on the page side; if it does not open, it is a real 404 or the storage permission has changed;
- Check hotlink protection and signatures: after switching to HTTPS, the Referer policy may change, and some image hosts reject requests; expired signatures for private buckets also appear as blank images, but that is unrelated to protocol;
- Check CSP: if the page enables Content-Security-Policy and img-src allows only HTTPS sources, HTTP images are blocked as a whole category;
- Check embedded WebViews: in-app browsers differ significantly in their support for protocol-relative // addresses and automatic upgrades, so they need separate verification.
Step 2 is the easiest diagnostic point: can open directly = file is alive = the problem is on the page side, in the protocol or policy. Put this into the on-call checklist; it is much faster than guessing from experience.
How to handle existing body content: experience ranges for three approaches
The hard part is not the technology, but that coverage, risk, and timeline are difficult to optimize at the same time. Choosing based on where the images mainly live is more practical than choosing by preference. Based on common delivery experience in 2026, the cost difference mainly comes from this step.
- Batch-replace body content in the database: change http:// to https:// in the article body. This covers all existing content in your own database, but cannot handle third-party external image hosts. The risk is that if the scope is not defined precisely, it may accidentally affect external article links referenced in the body. You must first count matching rows, manually sample-check, run in staging, and keep a rollback script. For a few thousand articles, from counting to gradual rollout, the experience range is 1 to 3 business days.
- Rewrite uniformly at the rendering layer: uniformly rewrite image URL protocols in the rich-text output filter or template layer. It takes effect for both new and old content and covers all output endpoints; the downside is that when output is spread across multiple endpoints, paths are easy to miss, and runtime string processing adds overhead. The launch experience range is half a day to 2 days, usually used together with batch replacement.
- Image proxy forwarding: for uncontrollable third-party HTTP image hosts, build your own HTTPS proxy path to fetch and cache images. It can rescue old images from providers that do not support HTTPS at all; the cost is an extra availability dependency: if the provider changes hotlink protection policies or goes down, your side will also show blank images. The integration timeline experience range is 3 to 7 days, depending on the number of image hosts.
The choice can be simplified into one sentence: if images mainly live on your own image host, the first two approaches are enough; only when third-party HTTP image hosts account for a high proportion is a proxy worth adding. CSP’s upgrade-insecure-requests directive can serve as a fallback, automatically upgrading HTTP resources to HTTPS requests in the browser, but that is browser-side behavior. Old engines and some embedded WebViews may not honor it, so it can only be a patch, not the only solution.
The cost learned from one existing-content replacement
Here is a delivery-site experience. The constraints were: the client had a limited budget, thousands of images could not be re-uploaded, assets were scattered across three legacy CMSs, and about 20% to 30% of images in article bodies pointed to external third-party HTTP image hosts. The approach was to first run a count of “rows containing HTTP image URLs in body content,” show the number to the client, then replace in batches by source, with the external image host portion handled separately through a proxy. The first time it went to staging, the replacement script did not limit its scope to img src, so it also changed external article links referenced in body content to HTTPS. During the client’s review, two dead links were clicked, the whole batch was rolled back and redone, costing about two extra days. The cost bought a fixed whitelist for the script—“only change HTTP addresses in img src and CSS background, do not touch a tags”—and that was written into the launch checklist. For this type of site, from counting to closure, the typical range is within two to three weeks, provided you do not open the whole database at once.
Which sites should do this, and which should wait
Suitable for handling: the site has fully switched to HTTPS, existing body content ranges from hundreds to tens of thousands of articles, images mainly live on your own image host or controllable object storage, and there are external security badge or platform compliance requirements—mini programs, official accounts, and payment callback pages can be blocked at this step by full-site HTTPS checks.
Not urgent yet: sites still accessed externally via HTTP. At that point mixed content blocking does not exist, and changing it may instead introduce new redirect issues. If image sources must be intranet HTTP (for example, the front end directly connects to an intranet camera stream), evaluate changing to back-end stream pulling and forwarding rather than simply switching protocols. For purely internal demos or short-lived temporary environments, investing manpower in batch replacement is not cost-effective.
Frequently asked questions
The same image loads on my phone, but is blank on the client’s computer. What is going on?
It is most likely a browser policy difference: newer engines block by default, or stop loading HTTP images if the upgrade fails, while older engines only warn and still display them, so it looks like some people can see it and some cannot.
The third-party image host does not support HTTPS at all. If changing the protocol does not work, what should we do?
Such images can only be localized: download them and store them in your own HTTPS object storage, or route them through an image proxy under your own domain. Changing the protocol cannot solve the problem that the provider does not support HTTPS.
The site is still accessed via HTTP. Should we prepare this work in advance?
It is not urgent, but before switching to HTTPS, it is advisable to count rows containing HTTP image URLs in body content, prepare replacement and rollback scripts, and execute them together on the switch day, which minimizes rework.
There is no Mixed Content message in the console, but images are still blank. Should we still investigate the protocol direction?
You can set that aside for now and first check for real 404s, hotlink protection, and expired signatures. When there is no blocking message, the problem is most likely in the files themselves or storage permissions.
Recommended action order: first sample 20 old articles from different years to reproduce the issue and screenshot the console, then count rows containing HTTP image URLs across the whole database, then run the replacement script in staging and roll out in batches, and finally add CSP as a fallback and write it into the launch checklist. The acceptance criteria can be specific: sample 30 old articles and images display normally, the console has no Mixed Content messages, and images still do not drop after tightening CSP. This approach applies to sites that have fully switched to HTTPS and have controllable image sources; when images rely heavily on third-party image hosts that do not support HTTPS, first evaluate the operational cost of proxy forwarding before starting.
-
Ops says Redis memory is only at 60%, but a batch of users was kicked back to the login page this morning—is adding memory now still in time?
Date: Nov 29, 2026 Read: 6
-
Query API works in the page but downloads when pasted into the browser address bar—should I check the gateway first or the response headers?
Date: Nov 28, 2026 Read: 8
-
Sometimes a user's avatar briefly shows someone else's, and re-uploading fixes it—does adding a random string to the filename help?
Date: Nov 27, 2026 Read: 16
-
Customers say they never receive the SMS code while our backend shows every send as successful—at acceptance, should the issue count against the channel or against us?
Date: Nov 25, 2026 Read: 27
-
Client double-clicks an exported list in Excel and Chinese becomes question marks, but Notepad shows it normally—is the file corrupted or is it the wrong way to open it?
Date: Nov 24, 2026 Read: 31




