iCal:如何删除有订阅的.ics文件? [英] iCal: How do I delete an .ics file that has subscriptions?

查看:374
本文介绍了iCal:如何删除有订阅的.ics文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的服务器上有一个PHP生成的.ics日历文件。



多个客户订阅了此日历,例如。使用Google日历和Apple iCal /日历。



我要删除日历及其中的所有活动,而且会从客户端删除。 p>

似乎如果我删除.ics文件,事件将仍然存在于客户端。



保留空的.ics文件?

解决方案

在HTTP中,我们应该使用一些语法来指示客户端不再使用日历告诉客户端资源不再存在的方式是发出 404未找到 410已成功状态代码。



然而,即使这是正确的方式,实际上大多数客户端不会自动对此信息做任何处理。



我认为这是最正确的,因为日历客户端会在日历中添加警告或错误图标,向用户发出信号



但是,如果你只想让事件自动消失,你唯一的选择是发布一个日历0个事件。


I have a PHP generated .ics calendar file on my server.

Several clients are subscribed to this calendar, e.g. using Google Calendar and Apple iCal/Calendar.

I want to delete the calendar and all events in it, in a way that it is also removed from the clients.

It seems that if I delete the .ics file, the events will still exist in the clients.

Should I keep an empty .ics file? Or is there some syntax I should use to instruct the clients that the calendar is no longer to be used?

解决方案

In HTTP the way to tell clients that the resource no longer exists, is to emit a 404 Not Found or a 410 Gone status code.

However, even though this is the 'correct way', in practice most clients won't automatically do something with this information.

I do think that this is the 'most correct' though, because calendar clients do tend to add a 'warning' or 'error' icon to the calendar, signaling the user that something is wrong (so they can manually clean it up).

However, if you just want the events to disappear automatically, your only option is to publish a calendar with 0 events.

这篇关于iCal:如何删除有订阅的.ics文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆