Beaker Docs
  • Welcome
  • Getting Started with Beaker
  • Joining the Social Network
  • Why use Beaker?
  • Beginner
    • Creating New Hyperdrives
    • Changing a Drive's Title or Thumbnail
    • Using the Editor
    • Detaching the Editor
    • Creating Files and Folders
    • Importing and Exporting Files
    • Sharing Hyperdrives
    • Hosting Hyperdrives
  • Intermediate
    • Your Profile Drive
    • Your Address Book
    • Your System Drive
  • Advanced
    • Webterm
    • Creating Mounts
    • Editing File Metadata
    • Forking Hyperdrives
    • Comparing and Merging Hyperdrives
  • APIs
    • beaker.capabilities
    • beaker.contacts
    • beaker.hyperdrive
    • beaker.markdown
    • beaker.peersockets
    • beaker.shell
    • beaker.terminal
  • Developers
    • Introduction to Hyperdrive
    • Index.json Manifest
    • Content-Type Negotiation
    • Frontends (.ui folder)
    • .Goto Files
  • Help
    • Hole-punchability
Powered by GitBook
On this page

Was this helpful?

  1. Developers

Content-Type Negotiation

Some files will be served correctly if you do not include an extension. Rather than typing:

<img src="/thumb.png">

You can just type:

<img src="/thumb">

This is helpful when you don't know which extension the site may use. In the case of images, it might be .png, .jpg, .jpeg, or .gif. By not including the extension, you will fetch whichever format they use.

The behaviors are:

  • text/html. Will match .html and .md.

  • text/css. Will match .css.

  • image/*. Will match .png, .jpg, .jpeg, and .gif.

PreviousIndex.json ManifestNextFrontends (.ui folder)

Last updated 5 years ago

Was this helpful?