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.
On Thu, Oct 9, 2014 at 5:10 AM, manish sapkal <[email protected]> wrote: > 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 > > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/nodejs/f1c374b7-04d5-4876-9898-d7c733ab67d7%40googlegroups.com > <https://groups.google.com/d/msgid/nodejs/f1c374b7-04d5-4876-9898-d7c733ab67d7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAPJ5V2Z7BpQbN%3D0eV9k1kUbF5J5xGR8KDX7Gvp40HSKwNxupMQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
