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.
Related
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.
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
I am having an issue with image caching I believe. Not 100% sure thats the issue, but perhaps someone with greater expertise could assist.
In my wordpress site, I have some images that were uploaded via the media library. Now, when I first enter the site that has no cached info from the site, the images load and display properly. But, when the site has been cached, the images are loaded, but are not displaying on every reload.
The reason I know is, because when I do a hard refresh (Shift + F5), where I am reloading the site from square one, I get the images to display properly again.
Any reason why this might be happening? I am completely lost, and don't know where I could start to fix this problem.
Thanks,
Andy
I have written a small picture script which shows a directory listing with thumbnails and also previews of the pictures.
Directory listing example
Image preview example
Source code
In some cases, when you click through several image previews (you can also use the arrow keys left/right to do that faster), some images don't fully load (and they are only shown partly then).
I think this has started to appear more often since I am preloading the next few pictures but it also has appeared before. This also occurs most often if you switch the images very fast.
I wonder why this appears and how I can avoid this. I guess that the browser somehow looses some connection to the server (or the server closes it unexpectedly for some reason). Thus I tried to work around this by setting Content-Length (and I was hoping that the browser would reconnect automatically if the file was not received fully) but that didn't helped.
Also, in the browser, a normal reload of the page doesn't help, I have to force a full reload.
I'm trying to upload files to my client's Wordpress theme but the strangest things are happening. 1) When I update the css (a simple background-color change), upload, and hit refresh, the change doesn't show. 2) When I hit refresh on the site multiple times, sometimes a bigger sized logo shows and sometimes the background comes up tiled, and sometimes the background comes up not tiled. I'm transferring files through sftp (first time doing this). Could that be the issue? How can I resolve this? I tried clearing the cache but no dice.
Could be from several reasons
there is a load balancer ( and the picture gets on one of the servers but not on the other )
there is a cache problem ( try deleting the cached files from the browser )
there is a wp cache plugin affecting this