Changes to Wordpress Site not showing when logged out - html

I've recently transferred a wordpress website from http to https. After this transition the website stopped loading properly when not logged in, but it loads fine when logged in. While investigating further I also discovered that this only occurred on certain pages of the site.
So I looked for some solutions to the problem and tried disabling a few plugins. But I discovered that when I make a change (for example disabling a plugin or changing the layout) the change only appears if I am logged in, and doesn't show at all if I am logged out and viewing the site.
I have tried clearing the cache on the website disabling and re-enabling all plugins but nothing has worked.
This is how the site looks when logged in:
https://i.stack.imgur.com/YB0KO.png
And you can see how the site looks while logged out here: www.onlyphysics.org
The theme I am using is Divi.
I would be very grateful for any help I could get on this issue!

I can see that CSS files are not being loaded (404 in console). This relates to css static cache. Browser is still looking for the old css generated file.
Go to Divi Theme Options > Builder > Advanced > Static CSS File Generation
And also open your site in Incognito or private window afterwards to see. There might also be additional caching on your site, which you'll need to empty afterwards to.
More info / Source: https://divitheme.net/clear-divi-cache/

Related

How to Disable Page Caching in Trusted Web Activity App?

I created a Trusted Web Activity App for one of my friends.
Link: https://play.google.com/store/apps/details?id=com.grodudes.app
It's working absolutely fine but I am facing a small problem it is showing the cached pages even when the device is online and it causes problem like showing the user is logged out when moving to a different page even though he is logged in. Reloading the page fixes it.
How can I fix it?

CSS code not working only when website is live

I'm working on my website, matthewbellanalytics.com, and I have been trying to make some changes to the contact.css CSS of the contact page. I edited the CSS file and the changes that I was seeing offline weren't reflected online.
Specifically, I changed the background-color:blue, which worked offline as seen here:
I then replaced that file on my hostgator server and I double checked that it was replaced correctly by re-downloading the CSS file from my cPanel.
background-color:blue was definitely still part of the code.
But when I view the website online. background-color:blue, is mysteriously not part of the CSS file anymore.
I assumed this must be a caching issue so I cleared the cache on both firefox and chrome, but still no luck. I then tried opening the website on Opera which I haven't done before so there should be no cache. No luck.
The online page still isn't updating to blue, and looks like this:
Check the css file path. In server the path might vary.
I was able to solve it in chrome, but not firefox, by going into the developer tools and disabling the cache from there under the "network" tab. No other method of clearing cache seems to work.

Caching? div concerning images don't work on pc's that opened site first 3 hours after upload

Hi I'm kinda stuck on idea's to try to solve my problem since I don't have much experience concerning caches.
I'm currently working on this site of a business partner of me.
I got his host, username and password so I'm litterary working as him using Filezilla.
I downloaded the entire site content from filezilla into a desktopfolder.
I made a copy of it to work in and from there I made some changes in the .html and .css files.
In offline mode, everythings works perfectly as I want it.
Then I deleted the the sitecontent in Filezilla and replaced it with my changes.
Now the weird parts happen.
When I open the site online without www. prefix it works great
when I open the site online with www. prefix I can't see the images that are
placed within div's that purely concern the image
When a pc opened the site in the first 3 houres it was online, the div's don't
work
Also later on that specific pc can't make the div's to work
Pc's that opened the site only after these 3 houres have no problem at all
I've tried replacing the stylesheet and wait a couple hours, but caches seem to be made. and the result stays the same.
However this is no problem for the avarage customer since for them the site works, you can see what a hell this may be for me as developer and the owner, who offcourse opened the site right after I put it online.
Any suggestions might be usefull.
In most of the browsers you can use F12 shortcut to see the developer tools. In Network tab you can see all files that are currently being loaded. You can see there if the file is being loaded from the server or from the local machine.
By pressing CTRL+F5 (in Chrome and think in Firefox too) you are forcing cache to refresh.
If the PC is still loading in a cached version of the site, you can refresh the page and delete the cache by holding Control + F5.
Seems like I found the source of the problem.
I was using the css from a bought template which has some coding that malfunctions when ftp-uploading using ASCII
Uploading Binary solves the problem
The reason the did work on some computers was that they had the old css still cached. which was earlyer uploaded in binary instead of the same css files i uploaded in ASCII.

Favicon doesn't refreshes even after forced refresh

I built two websites on my localhost. I used one favicon for the first website.
Later when i started developing the second website. I copied first website and started working on it. I changed code and files for the second website.
But when I run the second website on my server why does it shows favicon from the first website?
I tried force refresh it, clear cache. But nothings helping.
Try clearing your browser cache but you might also consider setting up a named virtual host both sites.

wordpress - Unable to see the pages in web site

I was able to edit pages in wordpress dashboard, but when I was trying to look the pages through browser nothing is displayed.
Nothing is working except the home page.
I tried installing another theme but in all the themes only home page was working fine.
Have you looked around at the Wordpress forums? Maybe this page ? http://wordpress.org/support/topic/page-not-found-39
Have you changed your site permissions (e.g via FTP) Sometimes having specific site permissions may cause your page not to show.
Do you have the most updated version of Wordpress?