Skip to content

oob for multiple objects #5

@DanielLindstrm

Description

@DanielLindstrm

It could be useful if the primary server would be able to send information about multiple objects in the body of the out-of-band encoded message. i.e. also for files not yet requested. That way the browser does not need to send any unnecessary requests for objects that the primary server is going to send out-of-band later.

However, that would mean sending meta data about the objects in the body instead of in headers.
An example of such a response could be something like this:

Response:

HTTP/1.1 200 OK
Date: Wed, 26 Aug 2015 17:06:00 GMT
Content-Type: application/json
Content-Encoding: out-of-band
Encryption-Key: keyid=key1; key=very_secret_key

[
  {
    "obj": "/path/file1.jpg",
    "oob-link": "https://new_path/993ufjf8-f19jf-13f",
    "Content-Type": "image/jpg",
    "Cache-Control": "max-age:5000"
  },
  {
    "obj": "/path/style.css",
    "oob-link": "https://new_path/j39j3-jf83hf-hkjfj3",
    "Content-Type": "text/css",
    "Cache-Control": "max-age:1000"
  },
  {
    "obj": "/path/a_movie.mp4",
    "oob-link": "https://new_path/mm429d-29jd2-ddj2f",
    "Content-Type": "video/mp4",
    "Cache-Control": "max-age:10000"
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions