sb admin 2 bootstrap login image stuck - css

I have been trying for the past two hours to change the image on the login page from a dog to something else, checked all the files, both css and scss and changed the link everywhere, but still see this dog! I even tried deleting the code parts but still dog remained on its place, and no cache cleaning on browser helped either. Any ideas what could it be and what should i do?

This is caused by a local or server-level cache. Always ensure you are performing a hard-refresh on your browser when you want to see changes you have made to your code. This is especially true when editing CSS files.
To perform a hard refresh just use Ctrl + Shift + R

Related

Do you lose all your images if you delete the variant in Cloudflare Images?

I noticed that a bunch of my images were no longer showing up on my website. When I inspected the url, I get:
ERROR 9425: Image access denied: This account doesn't have variant with this name
I think I had deleted a couple of my variants because I thought that was meant for creating newly resized images based upon the variant settings. I didn't realize it cause an issue with images created in the past.
In my case, I recreated a new variant with the same name as the old one. The old images still work. I'm not entirely sure what this means, but if someone could explain it to me, and how it's beneficial, that would be great!

while developing a website and testing it does browser create and store cache?

Hello I am developing a website on ASP.NET and while developing it I am also testing its behavior and changes. The problem I am facing is some times when I make change on .CSS file those changes does not appear on the browser even when I refresh it or rerun the project but when I run that project on different browser it began to show those changes. If it is a code related or browser related or IDE related please let me know. Thanks
Try hitting ctrl-F5 - that will force a re-load.
Unless you change the name of the css file or other resource, the browser can cache that information for months on end.
In fact, some utilities will even add say a dummy parameter to the linked css file - thus on each build the parameter is updated - and thus the browser will not use the older cached value (but, I not found a great working and easy to use utility that does this).
The other way? Empty your browser cache. So yes, the cache can be a REALLY nasty issue during development. And in fact it can be REALLY nasty when you update your site - users will not see say a modify css file, since it been cached, and with the same name, then users will not see new fixes/style changes or even even things like text alignment that you fixed in the css file.
As noted, in most cases, if you launch a page, then try hitting Ctrl-F5 (I think this works in most browsers). If that fails, then you have to in the browser re-set the cache (empty the cache), and then you see the new changes.
I wish had a better solution, and I wish one could just say:
Ok, please re-set ONE time for all past users - since they will often not see your changes - and you don't have much control with any real great ease to re-set the cached information. There are truck-loads, book sized articles in dealing with this issue, but sadly, there not really a great solution right now. If you want say things like cached css stuff to go away client side? Then you have to change the name of the css file - and that can be painful.
At least during development? Well, let the page load, then try Ctrl-f5 - that works well in most cases.

Why does safari sometimes fail to respond to CSS quickly?

I have lost development time adjusting CSS with some - but not all - results when checking at Safari. Some results is much worst than no results in terms of productivity, thus this question. All results do show on the next day or so (based on cache refresh maybe). I see suggestions to clear cache but nothing conclusive. Is there a permanent fix to solve that? Maybe a script to clean cache again and again?
There are multiple things that might cause this: server cache, local cache even performance plugins if you use something like Wordpress.
Finding the exact cause needs more information from your side. But, even in the most extreme cases, there is one solution that you can use and it works almost every time for me: add a get parameter when including the .css file and change it when you make changes (style.css -> style.css?something=3123131, change the number every time).
You can do it in the files or you can even do it in developer tools, find the tag with the file and add the parameter manually there, the file willreload and you'll see the latest changes.
EDIT: this is a hack, use it when you can't control the cache or changes are small and it would be more time consuming to setup the system than to use this hack.

Image gets randomly half corrupted

This image will randomly become corrupted, like above, when gathered through Simply Static (also reproduced with NGINX Caching server).
Then if I were to visit the actual page displaying this image on WordPress, it's corrupted as well! Except if I do a HARD Refresh (CTRL + F5), then it comes back to normal.
I just have no idea how that could happen, hence my question in here!
[Running through docker wordpress:5.0.3]
Well, actually, even without any Caching mechanism the issue can still happens.
Increasing PHP memory_limit property did the trick.
I also optimized those images.

Wordpress CSS changes do not reflect

I am working on WP 3.5.1, the latest version with a Duotive Three theme installed in it. Everything was working fine until 2 days back, but from 2 days, whenever I edit my CSS file either through the FTP or the Wordpress Admin, it does not reflect in the browser, either in the website or when I open the CSS file in the browser directly. However, the changes start reflecting a few hours later, I do not know how long exactly. But it frustrates me a lot because I need to wait for a long time to see the changes and check them.
I have tried refreshing the browser with Shift + F5, I deleted browser cache, cookies and even temp files. But still it does not work. Please help.
Note:- I have been working in Wordpress since around 6 years now, built more than 100 websites in Wordpress but this is the first time I am facing this problem. I tried to consult with my network of friends and spent hours googling, many had similar problems but not exactly like mine.
One thing that you might do is to add a version number where the css is called.
If it is called in the head, you can do it like:
<link rel="stylesheet" type="text/css" href="youtstylestyles.css?version=1.0" media="all" />
This will make the browser refresh.
There is also a variable in the wp_enqueue_style() function (if that is how the stylesheet is added) and if you up that it will force a refresh.
In your WP Admin GoTo
Appearance -> Theme Options -> Dynamic CSS ->
In this option scroll down you can see USE option
Here you need to select Internal Stylesheet from drop down menu.

Resources