Code Monkey home page Code Monkey logo

Comments (9)

ScottHelme avatar ScottHelme commented on May 24, 2024 1

This seems like a reasonable suggestion 👍

from bootstrapcdn.

XhmikosR avatar XhmikosR commented on May 24, 2024 1

Does anybody have any objection to adding the header for all filetypes instead for only .css and .js?

from bootstrapcdn.

jdorfman avatar jdorfman commented on May 24, 2024 1

@XhmikosR I don't check Twitter anymore and so it's wasted bytes over the wire. You dream come true.

from bootstrapcdn.

Malvoz avatar Malvoz commented on May 24, 2024

x-content-type-options: nosniff also enables CORB protection for the resource types:

If the response contains X-Content-Type-Options: nosniff response header, then the response will be CORB-protected if its Content-Type header is one of the following:

HTML MIME type
XML MIME type (except image/svg+xml which is CORB-exempt as described above)
JSON MIME type
text/plain

from bootstrapcdn.

XhmikosR avatar XhmikosR commented on May 24, 2024

BTW it seems Google sends the header for all files, which arguably would be simpler if we did too...

C:\Users\XhmikosR\Desktop>curl -ILl https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
HTTP/2 200
x-content-type-options: nosniff

from bootstrapcdn.

jdorfman avatar jdorfman commented on May 24, 2024

nope

from bootstrapcdn.

jdorfman avatar jdorfman commented on May 24, 2024

@XhmikosR while they are at it, let's remove

x-hello-human: Say hello back! @getBootstrapCDN on Twitter

from bootstrapcdn.

XhmikosR avatar XhmikosR commented on May 24, 2024

from bootstrapcdn.

XhmikosR avatar XhmikosR commented on May 24, 2024

@ScottHelme do you know if setting this for all filetypes can be troublesome? I see Google is doing the same and AFAICT browsers should ignore it for filetypes that doesn't apply.

Setting it for all filetypes is simpler, otherwise I could do it for all filetypes it's needed as long as I have a list 🙂

from bootstrapcdn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.