alist icon indicating copy to clipboard operation
alist copied to clipboard

支持常见的CDN刷新缓存API

Open valord577 opened this issue 1 year ago • 3 comments

Please make sure of the following things

  • [X] I have read the documentation.
  • [X] I'm sure there are no duplicate issues or discussions.
  • [X] I'm sure this feature is not implemented.
  • [x] I'm sure it's a reasonable and popular requirement.

Description of the feature / 需求描述

将alist的服务作为源站时 cdn回源后可能会缓存

  • 如果文件变更或删除时 希望能调用一下cdn的api 进行缓存刷新
  • 如果发生版本更新时 也希望能调用一下cdn的api 刷新html等页面的缓存
  • 参考API
    • https://help.aliyun.com/zh/cdn/developer-reference/api-cdn-2018-05-10-refreshobjectcaches
    • https://cloud.tencent.com/document/api/228/37870
    • https://cloud.tencent.com/document/api/228/37871

Suggested solution / 实现思路

No response

Additional context / 附件

No response

valord577 avatar Dec 27 '23 05:12 valord577

思路不对,CDN不是用来做内容存储,主要用作内容分发的。 对于内容的管理应该放在CDN的回源目标上。 一般用对象存储做CDN得回源内容,比如S3/OSS/COS。

jiangzm avatar Jan 04 '24 07:01 jiangzm

思路不对,CDN不是用来做内容存储,主要用作内容分发的。 对于内容的管理应该放在CDN的回源目标上。 一般用对象存储做CDN得回源内容,比如S3/OSS/COS。

@jiangzm

用户 -> CDN -> AList -> AList管理的存储

这个访问链路上 假设CDN有缓存。我在AList管理后台删除了一个文件 通过CDN访问的话 这个文件还能下载。

所以要通过API刷新一下CDN的缓存。

valord577 avatar Jan 04 '24 07:01 valord577

我也遇到了。目前ALIST 确实不支持。我自己写了一个脚本在后面定时触发。。

JJTools avatar Jan 29 '24 02:01 JJTools

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 13 '24 04:03 stale[bot]

Hello @, this issue was closed due to inactive more than 52 days. You can reopen or recreate it if you think it should continue. Thank you for your contributions again.

github-actions[bot] avatar Mar 22 '24 00:03 github-actions[bot]