Title: Content type is coupled to document extension · Issue #460 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: Content type is coupled to document extension · Issue #460 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: Content type is coupled to document extension · Issue #460 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Looking at how content types are resolved, it seems like they are coupled to the extension of the document when creating it. In my apps, I create documents without an extension (because I think documents should be serialization agnostic,...
Open Graph Description: Looking at how content types are resolved, it seems like they are coupled to the extension of the document when creating it. In my apps, I create documents without an extension (because I think doc...
X Description: Looking at how content types are resolved, it seems like they are coupled to the extension of the document when creating it. In my apps, I create documents without an extension (because I think doc...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/460
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Content type is coupled to document extension","articleBody":"Looking at [how content types are resolved](https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/e5bb290903dcf046c91c6bfa699cb1760efacd89/src/utils/url.js#L219), it seems like they are coupled to the extension of the document when creating it.\n\nIn my apps, I create documents without an extension (because I think documents should be serialization agnostic, for example in JSS I don't care if it's stored using JsonLD or Turtle, as long as it returns what I ask with content negotiation). Because of that, when the resolution algorithm tries to detect the content type of a document, it defaults to \"application/octet-stream\" and falls back to returning the raw document without content negotiation.\n\nIf you want to reproduce this, just use [Ramen](https://ramen.noeldemartin.com/) against a JSS instance.","author":{"url":"https://github.com/NoelDeMartin","@type":"Person","name":"NoelDeMartin"},"datePublished":"2026-05-16T07:06:16Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/460"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:46177985-12cc-fd80-b2db-a8d2ec6fd6d2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CFE6:1AF0E4:8F3079:B54D24:6B039F1C |
| html-safe-nonce | 2c2ce997d24931e6deef290cc3cafac0c78df7b61582f49de13caf43c913ccbf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkU2OjFBRjBFNDo4RjMwNzk6QjU0RDI0OjZCMDM5RjFDIiwidmlzaXRvcl9pZCI6Ijc0MTQxODc1MTk4NTM2OTg4NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1ee10545ff4df0268b46ef403b68ac14a17fdf3388bd0bd24ab2c27f647e37b6 |
| hovercard-subject-tag | issue:4459041851 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/460/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f1eb413d180227b3b87b172190bd4c68478b8ed872b512f96fd96b264b8df6ee/JavaScriptSolidServer/JavaScriptSolidServer/issues/460 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f1eb413d180227b3b87b172190bd4c68478b8ed872b512f96fd96b264b8df6ee/JavaScriptSolidServer/JavaScriptSolidServer/issues/460 |
| og:image:alt | Looking at how content types are resolved, it seems like they are coupled to the extension of the document when creating it. In my apps, I create documents without an extension (because I think doc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | NoelDeMartin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width