Found best bug ever!!! Image caching issue
-
I uploaded an image named : sqlstone-2_001.png It was too big so I delete it from the article. I resized the image (GIMP), added a little red box (highlight area of screen) and saved it. I then uploaded it to the article again with the same name. I then clicked the "insert" button to insert it into the article again. Now here's when it gets juicy. The thumbnail on the right, has the red highlight box, but the image in the article does not. I thought, ok, maybe I need to "flatten" the image. I did so, uploaded again. Still red box only shown in thumbnail. I thought, ok, maybe I need to remove the alpha channel in the image. I did so, uploaded again. Still red box only shown in thumbnail. At this point I'm going slightly insane. I then think, hmmm...maybe I need to rename the image so I named it sqlstone-2_001A.png and uploaded it. It worked. You can see (in the image I captured[^]) that the images on the right (thumbnails) show the red box but only one of the images on the left display the red box. Crazy, ain't it ?! I guess this is caching issue. But it drive a user crazy. I'm not sure how it can even cache that image like that, because keep in mind the first re-sized image (which is displaying in the article without the red box) actually had the red box also. :confused: Only the original (much larger image) didn't have the red box. I hope you can track this one down, cuz it crazy. UPDATE - ANOTHER CLUE In the article I'm editing I right-clicked the image with no red box and chose "open in new browser window" and saw this: https://www.codeproject.com/KB/Articles/5384295/Working/sqlstone-2_001.png[^] See the dimensions of that one? That's the original that has no red box. I then right-clicked and displayed the one named sqlstone-2_001A.png and I saw this: https://www.codeproject.com/KB/Articles/5384295/Working/sqlstone-2_001A.png[^] Summarized Issue The issue is that
-
I uploaded an image named : sqlstone-2_001.png It was too big so I delete it from the article. I resized the image (GIMP), added a little red box (highlight area of screen) and saved it. I then uploaded it to the article again with the same name. I then clicked the "insert" button to insert it into the article again. Now here's when it gets juicy. The thumbnail on the right, has the red highlight box, but the image in the article does not. I thought, ok, maybe I need to "flatten" the image. I did so, uploaded again. Still red box only shown in thumbnail. I thought, ok, maybe I need to remove the alpha channel in the image. I did so, uploaded again. Still red box only shown in thumbnail. At this point I'm going slightly insane. I then think, hmmm...maybe I need to rename the image so I named it sqlstone-2_001A.png and uploaded it. It worked. You can see (in the image I captured[^]) that the images on the right (thumbnails) show the red box but only one of the images on the left display the red box. Crazy, ain't it ?! I guess this is caching issue. But it drive a user crazy. I'm not sure how it can even cache that image like that, because keep in mind the first re-sized image (which is displaying in the article without the red box) actually had the red box also. :confused: Only the original (much larger image) didn't have the red box. I hope you can track this one down, cuz it crazy. UPDATE - ANOTHER CLUE In the article I'm editing I right-clicked the image with no red box and chose "open in new browser window" and saw this: https://www.codeproject.com/KB/Articles/5384295/Working/sqlstone-2_001.png[^] See the dimensions of that one? That's the original that has no red box. I then right-clicked and displayed the one named sqlstone-2_001A.png and I saw this: https://www.codeproject.com/KB/Articles/5384295/Working/sqlstone-2_001A.png[^] Summarized Issue The issue is that
Are you publishing the article after uploading an different image of the filename, and if so, afterwards, are you viewing it in the same browser? What happens if you clear your browser image cache, or look at the published article in a different browser? Does the published article display the updated image? Or are we strictly talking about the article editor only, never leaving it, and not publishing?
Thanks, Sean Ewington CodeProject
-
Are you publishing the article after uploading an different image of the filename, and if so, afterwards, are you viewing it in the same browser? What happens if you clear your browser image cache, or look at the published article in a different browser? Does the published article display the updated image? Or are we strictly talking about the article editor only, never leaving it, and not publishing?
Thanks, Sean Ewington CodeProject
Well, since I needed the correct image in the article, I never tried publishing the article with the wrong image showing in the edit area. However, I did do a preview and when I did the preview I still saw the incorrect image in the preview article. Also, it's all the same browser. I was just trying to get the article written. And, I definitely did not refresh the browser. I've lost articles doing that so I was too afraid to do that. I treat the editor with gentle kindess so it does not eat my unpublished article (as it has done in the past). :laugh:
-
Well, since I needed the correct image in the article, I never tried publishing the article with the wrong image showing in the edit area. However, I did do a preview and when I did the preview I still saw the incorrect image in the preview article. Also, it's all the same browser. I was just trying to get the article written. And, I definitely did not refresh the browser. I've lost articles doing that so I was too afraid to do that. I treat the editor with gentle kindess so it does not eat my unpublished article (as it has done in the past). :laugh:
Nooooo. I wouldn't refresh the browser either :) What browser are you using?
Thanks, Sean Ewington CodeProject
-
Nooooo. I wouldn't refresh the browser either :) What browser are you using?
Thanks, Sean Ewington CodeProject