TLS exception for specific asset


1 comment

  • Peter Wohlers

    A simpler method might be to add the check for the mp3 extension to the condition such as:

    if (!req.http.Fastly-SSL && !req.url.ext ~ “mp3”) { error 801 "Force SSL"; }

    As a safety though, you should probably create a new pair of snippets to capture requests for the mp3 objects that come in via TLS already and redirect them back to http. Essentially the inverse of what we have here.

    Comment actions Permalink

Please sign in to leave a comment.