question

FSDeveloper-4762 avatar image
0 Votes"
FSDeveloper-4762 asked FSDeveloper-4762 commented

Can I move media cache to another location?

When we use controls like Image or MediaElement, it uses "%packageId%/AC/INetCache" folder (and it seems like also INetHistory folder) as cache store.
And sometimes users of my application ask me, if application can move cache to some another folder (another disk or even to RAM).
I found, that those folders are used by WinRT HttpClient (see windows-toolkit/WindowsCommunityToolkit#1281). But is there some way to change cache folder?



windows-uwp
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I searched about this, but not found how to change the cache folder. I'm not sure if there is any method can achieve it, so I will ask the team about this.

0 Votes 0 ·

1 Answer

jadailey-MSFT avatar image
0 Votes"
jadailey-MSFT answered FSDeveloper-4762 commented

No there is no way to move the HttpClient cache programmatically using the UWP technologies. You could theoretically move it manually but that is not something that Microsoft recommends or supports.

That said, are you using a true streaming protocol like MPEG DASH or HLS? True streaming protocols typically implement their own caching mechanism and are much more efficient than simply using progressive download from an HTTP repository on a web host.

In other words, always use a true streaming protocol like MPEG DASH or HLS to avoid potential issues with the Inet Cache.

-James

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for answer and advice!
I use both HLS and simple HTTP-MP4.

0 Votes 0 ·