serving a TW5 with a last modified header via node.js

74 views
Skip to first unread message

Mark Brown

unread,
Apr 13, 2015, 5:30:45 AM4/13/15
to tiddl...@googlegroups.com
Hi all,

Another potentially stupid question from me.

I've set up a remote virtual private server with the node.js edition and it works great.

I've noticed however that whereas TW5s served from tiddlyspot will cache on my iphone (and thus reload quickly) my node.js one's won't. Is this because node.js isn't adding a last modified header? Is there a simple server command that tells node.js to do this?

I'm a complete novice with node.js, having ventured in because of my love of all things tw5.

Cheers

Mark

Jeremy Ruston

unread,
Apr 17, 2015, 10:18:04 AM4/17/15
to TiddlyWiki, Mark Brown
Hi Mark

Another potentially stupid question from me.

Not at all. 

I've set up a remote virtual private server with the node.js edition and it works great.

Excellent.
 
I've noticed however that whereas TW5s served from tiddlyspot will cache on my iphone (and thus reload quickly) my node.js one's won't. Is this because node.js isn't adding a last modified header? Is there a simple server command that tells node.js to do this?

Ouch, I hadn't spotted that that was happening. I assume that a last-modified header would sort things out, but it would need testing. I'm afraid that that would not be a straightforward fix. I've created a ticket here:

 
I'm a complete novice with node.js, having ventured in because of my love of all things tw5.

I'd be happy to give you a high level guide through the modifications if you want to take it on; we should discuss on the GitHub ticket.

Best wishes

Jeremy.

 

Cheers

Mark

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b62385dc-b0e5-4157-a3c6-37045f354e6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Mark Brown

unread,
Apr 18, 2015, 11:19:15 PM4/18/15
to tiddl...@googlegroups.com, jeremy...@gmail.com, markbro...@gmail.com
Thanks Jeremy. Have commented on the github ticket.
Reply all
Reply to author
Forward
0 new messages