detect "document.webkitVisibilityState" at server side

44 views
Skip to first unread message

manish sapkal

unread,
Oct 9, 2014, 5:10:42 AM10/9/14
to nod...@googlegroups.com

How Do I detect "document.webkitVisibilityState" of client on my app.js on node (server). because If my "Continue where you left off" setting in chrome browser is ON, then browser it self sending request on my server. (on that time, at client side "document.webkitVisibilityState" showing me undefined/hidden/prerender). I don't want to serve my data when browser send me request, because in this request, page does not shown to user. so, why should I process my session data of user un-nessessorily on server? and what about all other major browser like mozila, IE, opera etc...

thanks.

original issue : https://github.com/joyent/node/issues/8532#event-176225798


Matt

unread,
Oct 9, 2014, 11:53:18 AM10/9/14
to nod...@googlegroups.com
You can't detect it on the server directly. You'll have to detect it on the client and then send it down to the server somehow.

--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/f1c374b7-04d5-4876-9898-d7c733ab67d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages