Skip to content

Fork: nonce tag

redir edited this page May 31, 2021 · 3 revisions

This section is for those making a fork.

This section goes over the importance of your 'nonce' tag.

What is the nonce tag?

The nonce tag is a tag used for the HTML's id'ing system that's implemented on OpenSource uTube.

This is a feature that YouTube also uses, but YouTube gives it a unique value per user per IP. This way, everyone can watch something different, at the same time, or a different time. This system makes sure that no two people can possibly have the same nonce value, therefore, cannot be doing the exact same unintentionally.

What should my nonce tag be?

Your nonce tag should be a variable like YouTube's, not a static like ours. This helps your site manage traffic and many other things; in other words, it's extremely convenient to have it set up as a variable that's different for everyone.

The nonce is typically a value of 22 digits, set up as follows:

  • 16 letters
  • 1 symbol
  • 3 letters
  • 1 number & one letter

The value of nonce is irrelevant, as long as it's the same for every nonce tag on the entire site.