Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save carlajarchuleta1-a11y/68645f2bcd00d3aa6ab8d66571df1685 to your computer and use it in GitHub Desktop.

Select an option

Save carlajarchuleta1-a11y/68645f2bcd00d3aa6ab8d66571df1685 to your computer and use it in GitHub Desktop.
<!-- Replace `http` requests with `https` -->
<meta
http-equiv="Content-Security-Policy"
content="upgrade-insecure-requests"
/>
<!-- Set CSP, if not provided, the browser also uses the standard same-origin policy -->
<meta
http-equiv="Content-Security-Policy"
content="default-src 'self'; img-src https://*; child-src 'none';"
/>
<!-- Document Content Type -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- Explicitly enable DNS pre-resolution -->
<meta http-equiv="x-dns-prefetch-control" content="on" />
<!-- Use `expires` to specify expiration times for web pages -->
<!-- Once a webpage expires, it must be downloaded from the server -->
<meta http-equiv="expires" content="Fri, 05 May 2023 12:57:51 GMT" />
<!-- Automatically jump to page2 of the same domain after 5 seconds -->
<meta http-equiv="Refresh" content="5; URL=page2.html" />
<!-- Automatically refresh the page every 20s -->
<meta http-equiv="Refresh" content="20" />
<!-- Prevent the browser from reading web pages from the local cache -->
<meta http-equiv="pragma" content="no-cache" />
<!-- A way to set a cookie and can specify an expiration time -->
<meta
http-equiv="set-cookie"
content="expires=Fri, 05 May 2023 12:57:51 GMT,path=/"
/>
<!-- IE browser adaptation -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
@carlajarchuleta1-a11y
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment