shift-org / shift-docs

Shift2Bikes: website and calendar for shift and pedalpalooza
https://shift2bikes.org
Other
22 stars 17 forks source link

API documentation - add best practices for fetching images from the events endpoint #586

Closed carrythebanner closed 5 months ago

carrythebanner commented 10 months ago

Update the Events endpoint documentation in docs/CALENDAR_API.md with recommendations for image fetching.

In short:

ionous commented 9 months ago

those are good rules. for the last one on that list, web clients requesting through http will automatically use browser caching rules and the rules in shift.conf; which is set to max ( 10 years ish )

https://github.com/shift-org/shift-docs/blob/5372f850ab0d13750b95d9f90fd596dd485cb53d/services/nginx/conf.d/shift.conf#L61

for iphone or other clients, if they use something like https://developer.apple.com/documentation/foundation/nsurlrequest it should ( in theory ) automatically cache according to the same rules.