Wordpress Page Doesn't update on Initial Load - html

I have a wordpress site: carlscholl.com
I am running into a problem where the homepage is not updating when I initially go to the address. Here is a screenshot of the initial loading of my site:
https://imgur.com/th4iMSr
Here is another screen shot when I refresh the page. As you can see, I removed the picture of the piggy bank causing the site to be insecure. I replaced it with same image as the other post.
https://imgur.com/HjT6YwV
Does anyone know why the site is not updating when I initially go to it?

It might be related to DNS for the domain or caching. After looking into your website, I did not find any image at the moment, however, I noticed that your website is loading from Cloudflare. Usually, Cloudflare caches the images so, even if you remove it from the website, it can take some time for it to be gone. However, you can still clear the cache from the Cloudflare Dashboard by the "Purge Cache" option.
Another thing that I noticed that your website is not automatically redirecting to https:// by default. As you mentioned "removing the piggy bank image caused the site to insure", it might not be the case and you can enable auto SSL redirection from the Cloudflare Dashboard > SSL/TLS > Edge Certificates > Always Use HTTPS
So basically, the site not updating or the image not loading issue should be resolved automatically after some time or you can purge the cache for that image specifically (from Cloudflare) to speed it up.

Related

Nginx not updating webpages. Using Termux

I am trying to run a small website from my tablet with Termux and Ngnix. The nginx.conf file has been properly configured, and the webpages have been placed in the correct folder. The problem is that when I make changes to the html code, the nginx server doesn't seem to want to update with the new changes.
For example, I had a thumbnail image that would open in a new tab for viewing at full size when clicked. I later changed the html code so the same thumbnail image would open up a page on the site with related text info. I made sure to stop the server before applying any changes to my code, and then restarting the server after the appropriate changes were made. Unfortunately, the server keeps displaying the pages before the changes. It's like the original pages are stuck somewhere in the server's "memory" and don't want to update. Does anyone have any ideas as to what I'm doing wrong? This is getting really frustrating.
Thank you in advance to any who can help me.
Seems the issue was with the browser and not Nginx. I cleared the data from the browser, restarted, and haven't had any issues since. Strange, but it worked.

How to force HTML Page Refresh from Server

Currently, I am facing an issue with HTML page. So here if a user visited the site then the browser is caching the entire HTML page. So when the user hits the URL again then the browser taking that HTML from the cache instead of calling/requesting to the server for HTML contents. Here our Team member forgot to add meta tags which would force the browser to take content from Server each time. Is there any way that we could resolve the issue? Since the page request itself not reaching the server so User will not see the refresh contents of the website. If user do Ctrl+F5 then they can see updated contents. I went through many sites and stack overflow questions but I did find a solution for forcing HTML page to load contents from server using meta tags.But existing users is there any resolution that we could apply?
Problem is here the page did not call server to get contents it just loads from cache.
There's nothing you can do.
You've previously instructed the browser to cache the file (presumably for a long time) and not check for updates (via ETags or If-Modified-Since) so it is going to use the cached version until its cache expires (from the user intervening or automatically (which might be sooner than your caching instructions said)).
There's no way to provide new caching instructions to the browser without it requesting them from the server (which it won't do because of the existing rules).

Can redirect website/page when site server is down (This Site Can't Be Reached)?

is there any possibility to redirect the website or a page on my site, in case the server crashes (is down) ? I mean, I get sometimes the error "This Site Can't Be Reached", because of my hosting servers, and somehow I want to redirect to another website only when this error appears.
can be done, somehow?
Not directly. You can't send an instruction to the browser to redirect if it can't make a connection to your site in the first place.
You can put another service, with better uptime, in front of your site (e.g. Amazon CloudFront) and have your visitors request from their services instead of directly from yours. Obviously this doesn't work so well if you have personalised content.
CloudFront or another edge-cache would do this for you. It stores a copy of your website in a cache that sits in-front of your website. When it detects your website is unhealthy (i.e. down), it can display some predefined html that you store in e.g. an S3 bucket. In terms of redirecting to another website, you could put a link in that html, but it wouldn't be an automatic 'failover' where if your site is down, another entire web page loads.

I have an SSL but the pages are not showing lock signs which I need for my order page

I have an old site I am just about well enough (broken arm + cancer) to start working on again and I have already moved it to another server OVH and added an SSL/TLS certificate to it.
However in Chrome when I visit any page on the site, especially https://www.strictly-software.com/plugins/order.asp it shows either (don't know why refreshes would change it but they do sometimes) the insecure sign with the red line through the https:// part of the URL in the address bar or an information circle.
In Firefox however I get a secure lock sign. It maybe some add-on I have used like a popup blocker or something but I am at a loss to find out what is causing these insecure signs to appear when I need locks, especially on the order page
This morning I spent hours going through loads of JavaScript and CSS (background:http://blah.jpg) etc and changing it so it is local and cannot be changed remotely as well as making any http references into src="//" or href="//" etc.
I thought it must be one of the images on the "add this" pop up but cannot see anything in their code. Then I thought the Twitter scroller might be showing images from http destinations but Twitter wraps them all in their own URL format.
Does anyone know from looking at the generated source code what is making the page insecure?
Surely there should be a list somewhere in the browser that shows what content isn't secure and offers you to load or not load it? I know the information icon lets you load or not lot Flash, images or JavaScript but do you know of how I can find out what content isn't secure on these pages without asking visitors?
Thanks in advance.

Dynamic Image won't display correctly

I have a very basic page that displays a dynamic image. Here is my very simple code:
<html>
<body>
<p><img width=1024 height=768 src="../image/someImage.jpg"></p>
</body>
</html>
The image gets refreshed every minute by another program. The issue is that occasionally the html page will not display the updated image on anyone's computer, so it isn't a local cache issue. I am using IIS6. The only way to get it to display the updated image is by stopping and starting IIS for that site.
My company only uses IE, but I tried looking at it in FireFox as well and it did the same.
For a quick fix, append a question mark and a random number to the end of the image path. PHP Example:
<img src=".../images/someImage.jpg?<?=rand(1,100000)?>">
The real root of the problem could be expiration headers. You may want to configure the headers for images to expire sometime in the past. Google around for expiration headers.
Try to disable IIS7 cache:
Start IIS Manager (type IIS into search programs and files in start menu)
Navigate to desired site in the Connections tree (Default Web Site)
Open Output Caching
Edit Feature Settings
Uncheck Enable cache and Enable kernel cache