Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -204,7 +204,9 @@ export class AudioStreamingService {
|
||||
* Set common caching headers
|
||||
*/
|
||||
private setCommonHeaders(ctx: Context): void {
|
||||
ctx.response.headers.set('Cache-Control', 'no-store');
|
||||
// Allow caching of audio content to prevent redundant range requests
|
||||
// The token system already provides security
|
||||
ctx.response.headers.set('Cache-Control', 'public, max-age=3600');
|
||||
ctx.response.headers.set('Accept-Ranges', 'bytes');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user