Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2024-11-17 00:58:27

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,187
Website

dev-demo site: Preview panel fails to openin Safari

Browser: Safari 18.1 release and latest Safari TP

On the dev-demo site, log in and view Write panel, default article

Safari release.
Click on the Preview link
The Preview panel does not open
Console:

Unhandled Promise Rejection: TypeError: null is not an object (evaluating 'nopane.classList') (textpattern.js 2210)

Safari TP
performing the same actions:
The panel opens (text view)
Toggling to HTML view: a blank panel. Nothing in the error console. Inspecting the space where content should go: the <div id="pane-preview" class="html"> and the shadowDOM container do not exist. Trying to toggle back to the text preview results in the same blank panel.

Both browsers work fine (all actions performed as expected, no errors) on my localhost test sites and on two remote servers sites, all running latest TXP 4.9-dev.

This has been going on for at least the past week, and who knows how much longer (hat least since this testing).


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#2 2024-11-17 09:00:18

etc
Developer
Registered: 2010-11-11
Posts: 5,186
Website GitHub

Re: dev-demo site: Preview panel fails to openin Safari

Certainly a stale cache, there is no nopane constant in the current textpattern.js.

I also have noticed that this file is often outdated on our demo sites.

Offline

#3 2024-11-17 09:36:33

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,187
Website

Re: dev-demo site: Preview panel fails to openin Safari

Despite not often visiting dev-demo, and usually force reloading before entering, that might be the case indeed.

I see this: textpattern.js Cache-Control: max-age=31536000. Might be a good idea to shorten that to 3 hours (Cache-Control: max-age=10800), the maximum life time of the site as far as I understand.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#4 2024-11-17 09:54:53

etc
Developer
Registered: 2010-11-11
Posts: 5,186
Website GitHub

Re: dev-demo site: Preview panel fails to openin Safari

Force-reload does not help, it looks like cache happens on the server side.

Offline

#5 2024-11-18 05:57:39

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,187
Website

Re: dev-demo site: Preview panel fails to openin Safari

Force-reload (option-cmd-R in Safari) didn’t work but I was able to get it working by going: Safari Settings > Privacy > Manage website data and search for and delete textpattern.co. That is not great though.

The 3 relevant headers (for textpattern.js) as far as I can see:

Cache-Control: max-age=31536000
cf-cache-status: MISS
cf-ray: 8e45af2a4e2796b8-KIX

As I noted above Cache-Control should be set something more reasonable. I wonder too, is it Cloudflare caching (much) more than necessary? I suppose Pete has some control over that.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#6 2024-11-18 09:37:50

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,254
GitHub

Re: dev-demo site: Preview panel fails to openin Safari

I’ll fix that. Please stand by.

Offline

#7 2024-11-18 09:46:14

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,254
GitHub

Re: dev-demo site: Preview panel fails to openin Safari

phiw13 wrote #338271:

The 3 relevant headers (for textpattern.js) as far as I can see:

Cache-Control: max-age=31536000...

As I noted above Cache-Control should be set something more reasonable. I wonder too, is it Cloudflare caching (much) more than necessary? I suppose Pete has some control over that.

Given the nature of the dev site rebuild processes, it’s now set more aggressively than before:

Cache-Control: max-age=14400

Last edited by gaekwad (2024-11-18 09:46:42)

Offline

#8 2024-11-18 15:53:32

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,254
GitHub

Re: dev-demo site: Preview panel fails to openin Safari

Aside: I’ve set up github.com/textpattern/server-site-support to help track these things.

Please open issues for any improvements, over and above “this ain’t working, pal” – both types of messages are appreciated (albeit differently).

Offline

#9 2024-11-19 03:04:20

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,187
Website

Re: dev-demo site: Preview panel fails to openin Safari

gaekwad wrote #338274:

Given the nature of the dev site rebuild processes, it’s now set more aggressively than before:

Cache-Control: max-age=14400...

Thanks that will hopefully solves the stale textpattern.js.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

Board footer

Powered by FluxBB