unjs / unjs/ipx

proxy to file content as is if not image

Open
#257 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
2.5k
Forks
93
PR merge metrics
No merged PRs in 30d

Description

Describe the feature

It would be super convenient if ipx could just return the content of file as is if the file isn't an image.

This could be done as a feature flag, ex IPX_PROXY_NOT_IMAGE, if enabled, ipx would simply return the file content if the file is not an image.

Of course I understand that you can check what kind of file it is before request to ipx, but there are not entirely convenient conditions for this.

Additional information
  • Would you be willing to help implement this feature?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue. Start by locating IPX's request handling and the existing image validation, then find how feature flags are configured. Done means a flag such as IPX_PROXY_NOT_IMAGE can cause non-image file content to be returned unchanged while existing image optimization behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.