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

Move refresh function to service and add more options to call #204

Closed
kringkaste opened this issue Apr 25, 2022 · 2 comments
Closed

Move refresh function to service and add more options to call #204

kringkaste opened this issue Apr 25, 2022 · 2 comments

Comments

@kringkaste
Copy link

Description

Some providers (such as LinkedIn) provide images with an expiration token. After that, the URLs are changing and the old images can no longer be accessed (403). The plugin already has an action on the console that can refresh existing assets.

Would it be possible to move this function into the service as a "Refresh" function and make it callable via ElementAction and variables? Then it can be triggered on various ways and not only by hand. This would be great :)

@ttempleton
Copy link
Contributor

I've just added a new service method refreshEmbeddedAsset() for the next Embedded Assets 3 release (bd55978). Just wanted to ask about an example use case for adding a variable for it?

@ttempleton
Copy link
Contributor

Just released Embedded Assets 3.0.2 with the above-mentioned service method. I'll close this issue for now, but happy to take other suggestions for how users can trigger embedded asset refreshing, either as comments in this issue or as a new issue. See also #210 which suggests adding the ability for users to add rules for auto-refreshing of embedded assets.

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