Skip to content

Instantly share code, notes, and snippets.

@Noitidart
Created February 27, 2014 07:16
Show Gist options
  • Select an option

  • Save Noitidart/9245770 to your computer and use it in GitHub Desktop.

Select an option

Save Noitidart/9245770 to your computer and use it in GitHub Desktop.
_snippet-ff-addon-AppendFlag - This is a snippet to show you how to append a flag to existing flags. Plan to figure out how to remove a flag from existing flags.
var loadFlags = chan.loadFlags;
if (chan.URI.schemeIs("https"))
loadFlags &= ~chan.INHIBIT_PERSISTENT_CACHING; //the &= ~ will add it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment