Advertisement:

Author Topic: Problem with background image refresh  (Read 513 times)

Offline Sir Osis of Liver

  • SMF Super Hero
  • *******
  • Posts: 10,811
  • We were all equal in the end.
Problem with background image refresh
« on: January 10, 2021, 09:54:03 PM »
Background image on this forum refreshes every page load, so every page opens with white bg.  Wasn't happening previously.  Forum owner changed bg image, that apparently triggered the problem.  Previous image has been restored, css is unchanged -

Code: [Select]

body {
background: url(https://www.ebook-mecca.com/Themes/mobile-desktop/images/sunset.jpg) repeat-y fixed 100%;
font:78%/130% Comic Sans MS;
}


Caching is disabled, no change if set to level 1 or 2.  I have caching disabled on my forums and bg image loads once on initial load, no white bg on additional page loads.  Any idea what's causing this?

“The best laid schemes o' mice an' men / Gang aft a-gley.” - Robert Burns

Offline GigaWatt

  • The Smiley Guy
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,341
  • Gender: Male
    • MechDR on GitHub
    • Macedonian electronics forum
Re: Problem with background image refresh
« Reply #1 on: January 11, 2021, 09:06:05 AM »
I have caching disabled on my forums...

IMO, good choice ;). I almost always advise to disable caching as well ;). Depends on the forum, but in most cases, for small to medium sized forums, yes ;).

That's the previous image that's loading now or the new one, the one that the forum owner changed?
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline Sir Osis of Liver

  • SMF Super Hero
  • *******
  • Posts: 10,811
  • We were all equal in the end.
Re: Problem with background image refresh
« Reply #2 on: January 11, 2021, 11:36:59 AM »
She's back to original image, does it with both.  Never seen this before, and she's on my host, so it's not likely server caching issue.  I have an older index.css backup, soon as I get a minute will upload it, see if it's a css problem.

Nope, it's not index.css. >:(

Seeing attached in image info, no idea how it got there.
« Last Edit: January 11, 2021, 12:14:20 PM by Sir Osis of Liver »
“The best laid schemes o' mice an' men / Gang aft a-gley.” - Robert Burns

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,073
  • Gender: Male
    • Kindred-999 on GitHub
Re: Problem with background image refresh
« Reply #3 on: January 11, 2021, 12:23:55 PM »
that looks to be a chrome skin -- not anything on the website itself
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Project Manager
  • SMF Super Hero
  • *
  • Posts: 19,591
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • My Daily Dose Of Blasphemy
Re: Problem with background image refresh
« Reply #4 on: January 11, 2021, 12:30:19 PM »
that looks to be a chrome skin -- not anything on the website itself
Except it's shown in a FF media window.... :o
A Finnish Project Manager (Support Specialist)
Happily running multiple SMF 2.x installations.
 Fooling around with an i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,073
  • Gender: Male
    • Kindred-999 on GitHub
Re: Problem with background image refresh
« Reply #5 on: January 11, 2021, 12:36:14 PM »
that looks to be a chrome skin -- not anything on the website itself
Except it's shown in a FF media window.... :o

"Chrome" in this case refers to the non-website portions of the interface I believe....
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Project Manager
  • SMF Super Hero
  • *
  • Posts: 19,591
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • My Daily Dose Of Blasphemy
Re: Problem with background image refresh
« Reply #6 on: January 11, 2021, 12:41:16 PM »
Well, what ever it is - My FF isn't showing that. I'm still a bit confused though, as FF isn't based on chromium. I'm not sure how that would be seen within Firefox.
A Finnish Project Manager (Support Specialist)
Happily running multiple SMF 2.x installations.
 Fooling around with an i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,073
  • Gender: Male
    • Kindred-999 on GitHub
Re: Problem with background image refresh
« Reply #7 on: January 11, 2021, 04:29:38 PM »
it's not chromium....   for maximum confusion -- seriously, the "glittery bits" of the browser program are called "the chrome"
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Project Manager
  • SMF Super Hero
  • *
  • Posts: 19,591
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • My Daily Dose Of Blasphemy
Re: Problem with background image refresh
« Reply #8 on: January 11, 2021, 04:31:54 PM »
Okay... Yes - That is confusing, since the chrome:// path is also used in actual Chrome. Thanks for bearing with me as I tried to let that sink in my head.
A Finnish Project Manager (Support Specialist)
Happily running multiple SMF 2.x installations.
 Fooling around with an i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Sir Osis of Liver

  • SMF Super Hero
  • *******
  • Posts: 10,811
  • We were all equal in the end.
Re: Problem with background image refresh
« Reply #9 on: January 11, 2021, 08:17:20 PM »
chrome://global/skin/media/imagedoc-darknoise.png is black screen, the white screen on page load is apparently caused by reloading the png every time from external link.  Forum owner has no idea how it got there or why it's being called.  It's not in index.css or index.template.php.  I see it in FF, and the white bg in IE.  Doesn't show up in inspect element on either. 
“The best laid schemes o' mice an' men / Gang aft a-gley.” - Robert Burns

Offline GigaWatt

  • The Smiley Guy
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,341
  • Gender: Male
    • MechDR on GitHub
    • Macedonian electronics forum
Re: Problem with background image refresh
« Reply #10 on: January 27, 2021, 07:27:40 AM »
Okay... Yes - That is confusing, since the chrome:// path is also used in actual Chrome. Thanks for bearing with me as I tried to let that sink in my head.

Which is why Google named the browser Chrome ::)... for maximum confusion ::).
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline Sir Osis of Liver

  • SMF Super Hero
  • *******
  • Posts: 10,811
  • We were all equal in the end.
Re: Problem with background image refresh
« Reply #11 on: January 27, 2021, 11:18:09 AM »
Turns out the problem was being caused by code in .htaccess that was forcing refresh every page load.  I've used it on multiple forums for years to override caching when working with code and images.  Some browsers would hold on to images for days, and refuse to update css changes.  The code has always worked without issues anywhere I've used it, and had been working on this forum until she recently changed bg image (which she'd done many times before).  No idea why it acted up.


Code: [Select]

# NEVER CACHE
<FilesMatch "\.(txt|htm|html|php|css)$">
Header set Cache-Control "max-age=0, private, no-store, no-cache, must-revalidate"
</FilesMatch>

“The best laid schemes o' mice an' men / Gang aft a-gley.” - Robert Burns