Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl a fluffly link should give you the raw content (no html) #62

Open
matfra opened this issue Feb 21, 2018 · 1 comment
Open

curl a fluffly link should give you the raw content (no html) #62

matfra opened this issue Feb 21, 2018 · 1 comment

Comments

@matfra
Copy link

matfra commented Feb 21, 2018

That would be neat!

@chriskuehl
Copy link
Owner

Agreed, would definitely be cool. I'm not sure if there's an easy way to implement it right now though. The way the storage backends work is that fluffy hands them files (the rendered HTML as well as the raw text), and then the backends (e.g. S3) serve requests themselves.

There's not actually a server component involved when serving uploaded files. E.g. the HTML you see at https://i.fluffy.cc/D9rfD13wBLl5JHcjKH1HbtDGRZH0Wrkj.html is actually the S3 object s3://fluffy.cc/D9rfD13wBLl5JHcjKH1HbtDGRZH0Wrkj.html.

I don't think there's a way to get S3 to serve a different file based on the user agent, so this would probably mean a pretty big refactor to fluffy's architecture. A refactor would help with some features (like this) but also have some downsides we'd have to balance.

Definitely worth considering, I'll leave this ticket around although it's probably a long-term thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants