Disable caching (downloading for offline use) of a course page in mobile app

Disable caching (downloading for offline use) of a course page in mobile app

ved Jiří Matějka -
Antal besvarelser: 1

In my Moodle course, I am embedding a Bunny.net video with a protection that contains expiration check with a secure token included in the URL of the video. That token needs to be recalculated every time video is open.

I wrote a custom Moodle filter that calculates this secure token and embeds an iframe that loads external video from Bunny.net with URL including this token.

It works fine on web, but on mobile there is an issue that video is working fine only on first opening. After the token expiration period is over (6 hours), the video stops working.

The issue is probably in the fact that Moodle mobile app caches the content of the course page. I need to have this page to be opened fresh, without caching and offline downloading.

When I delete the offline content for this video page in Moodle mobile app, video works fine again until expiration period is over.

So my question, is there a way to stop Moodle mobile app to cache / download for offline a certain page or entire course?

Gennemsnitsbedømmelse: -
I svar til Jiří Matějka

Re: Disable caching (downloading for offline use) of a course page in mobile app

ved Jiří Matějka -
I completely disabled offline use according to https://docs.moodle.org/405/en/Moodle_app_offline_features, but it does not work, the app always downloads and caches my page with video (I tried logout from the app).

In the above link, there area another configuration options mentioned:

Site administrators can decide if they want:

  • Disable completely the offline mode
  • Disable all courses downloading
  • Disable individual courses downloading

For disabling the previous features, please see Moodle app guide for admins.

But there is nothing about disabling individual courses downloading in Moodle app guide for admins. 

Can anyone guide me to the right place?