Comments (3)
@stephan-fischer Hi! I'm not entirely sure I understand the use case. Under what circumstances would you want to add the exact same image to a user's photo library, over and over?
from media.
If the images are hosted on a CDN, the download costs traffic. There are certainly users who save the images several times, be it for tests, penetration, etc.
from media.
I'm sorry, but I'm still not seeing much of a use case for this feature. Users who are "testing" the app are probably just app developers, and adding a completely new feature to save developers a few seconds and a fraction of a fraction of a cent is probably not worth it :) Additionally, anyone who is trying to DoS/DDoS your CDN won't be doing it by clicking a button over and over in your app. They'll have some automated system to do it outside of the app, circumventing the caching (in the extremely unlikely case that someone specifically decides to target your app and cost you money -- in which case you have a much different set of problems haha). Adding this feature would also add a lot of unnecessary complexity. Some people might not want caching (e.g. if the image at the URL constantly changes), and then I'd need to add more information about how the caching works, and how to turn it off, and I'm just not seeing the benefits for something that has a very limited use case.
If you want caching, I recommend adding it to your CDN, instead of trying to implement it app-side, where it can easily be circumvented. (This is the industry standard approach.) Cloudflare is great for this -- putting Cloudflare in front of your CDN (completely free btw) will make subsequent requests free, and will automatically protect you from DoS/DDoS attacks. (https://developers.cloudflare.com/cache/concepts/default-cache-behavior/ -- when you set up Free Cloudflare for your site, images are automatically cached, so when images are repeatedly requested, subsequent requests won't cost you anything.)
from media.
Related Issues (20)
- docs(android): make it clear that file return on savePhoto is only available on Android
- App crash after downloading an image HOT 8
- App is crashed on Android due to EACCES (Permission denied) HOT 11
- Is there any method to retrieve more photos like using offset in query? HOT 1
- feat(android): add getAlbumsPath() function to get where albums are stored on filesystem
- Error: RuntimeException occurred : In SaveVideo method HOT 1
- READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE are still required in Android 13 HOT 5
- RuntimeException occurred / EACCES (Permission denied) when trying to save a photo/gif/video on android < 13 HOT 12
- When wanting to save photo to Album with identifier, getting identifier doesnt exist even tho Album exist HOT 3
- feat(ios): support jpeg files instead of png HOT 3
- Camera plugin is not implement on Android (Capacitor Camera) when pairing with Capacitor-Community/Media HOT 2
- savePhoto is not working in android 8.1.0 Samsung SM-T580 tablet HOT 1
- MediaFetchOptions support individual photo for high resolution HOT 2
- feat(ios): get specific media by identifier HOT 9
- feat: has access right / error codes for all errors HOT 5
- feat: Capacitor 6 Support HOT 4
- Failed to parse source map HOT 1
- Capacitor 5 - iOS savePhoto from public/images file HOT 2
- Photo Gallery Sync HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from media.