Skip to content

Commit

Permalink
v1.2.14
Browse files Browse the repository at this point in the history
- disabled cache for *HLS*
  • Loading branch information
genemars committed Sep 4, 2023
1 parent 996e0a7 commit 153f00f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MIG/Gateways/WebServiceGateway.cs
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ private void Worker(object state)
}
else
{
bool disableCacheControl = HttpCacheIgnoreCheck(url);
bool isText = false;
if (url.ToLower().EndsWith(".js")) // || requestedurl.EndsWith(".json"))
{
Expand Down Expand Up @@ -457,10 +458,12 @@ private void Worker(object state)
else if (url.ToLower().EndsWith(".m3u8"))
{
response.ContentType = "application/x-mpegURL";
disableCacheControl = true;
}
else if (url.ToLower().EndsWith(".ts"))
{
response.ContentType = "video/mp2t";
disableCacheControl = true;
}
else if (url.ToLower().EndsWith(".appcache"))
{
Expand Down Expand Up @@ -492,7 +495,6 @@ private void Worker(object state)
if (file.LastWriteTime.ToUniversalTime().Equals(modifiedSince))
modified = false;
}
bool disableCacheControl = HttpCacheIgnoreCheck(url);
if (!modified && !disableCacheControl)
{
// TODO: !IMPORTANT! exclude from caching files that contains SSI tags!
Expand Down

0 comments on commit 153f00f

Please sign in to comment.