mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-11-03 18:43:04 +00:00 
			
		
		
		
	Merge pull request #1007 from ae-utbm/calendar
Force ics cache invalidation on ics calendar
This commit is contained in:
		@@ -152,6 +152,7 @@ export class IcsCalendar extends inheritHtmlElement("div") {
 | 
			
		||||
 | 
			
		||||
  async connectedCallback() {
 | 
			
		||||
    super.connectedCallback();
 | 
			
		||||
    const cacheInvalidate = `?invalidate=${Date.now()}`;
 | 
			
		||||
    this.calendar = new Calendar(this.node, {
 | 
			
		||||
      plugins: [dayGridPlugin, iCalendarPlugin, listPlugin],
 | 
			
		||||
      locales: [frLocale, enLocale],
 | 
			
		||||
@@ -161,11 +162,11 @@ export class IcsCalendar extends inheritHtmlElement("div") {
 | 
			
		||||
      headerToolbar: this.currentToolbar(),
 | 
			
		||||
      eventSources: [
 | 
			
		||||
        {
 | 
			
		||||
          url: await makeUrl(calendarCalendarInternal),
 | 
			
		||||
          url: `${await makeUrl(calendarCalendarInternal)}${cacheInvalidate}`,
 | 
			
		||||
          format: "ics",
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
          url: await makeUrl(calendarCalendarExternal),
 | 
			
		||||
          url: `${await makeUrl(calendarCalendarExternal)}${cacheInvalidate}`,
 | 
			
		||||
          format: "ics",
 | 
			
		||||
        },
 | 
			
		||||
      ],
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user