nineteen-2 / statamic-instagram-basic-display-api

Instagram Basic Display API for Statamic
MIT License
9 stars 5 forks source link

403 : URL signature expired #11

Open lbeauvisage opened 3 years ago

lbeauvisage commented 3 years ago

We using cache, "URL signature" can be expired.

Need to invalidate it

wm-simon commented 2 years ago

Hey, is there a solution for it? This is really a problem for us.

lbeauvisage commented 2 years ago

@wm-simon try to update to 1.1.1

wm-simon commented 2 years ago

I've updated it and will look, if it happens again. Thanks for debugging.

wm-simon commented 2 years ago

Hey, I'm sorry, but this is still an issue.

lbeauvisage commented 2 years ago

@wm-simon the problem is not 100% due to this Addon. It is due to the different layouts of cache in Statamic.

The JSON returned by Instagram API use signed URL for the images. the Addon save the API response for 24h in cache to save HTTP request, with only this cache you will never have any "signature problem". But you probably using caching in Statamic (for static page generation for example) that prevents the Addon to refresh data from Instagram API

You have to find a way to exclude pages with IG feed from cache (check this: https://statamic.dev/static-caching#excluding-pages) or invalidate cache: https://statamic.dev/static-caching#invalidation

let me know what solution you found.

wm-simon commented 2 years ago

Hey @lbeauvisage , thanks for your reply. I used redis as cache driver and changed it now back to file. Hope this helps.