mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
We will need to send this enum over IPC to RequestServer to affect the disk cache's behavior.
34 lines
969 B
C++
34 lines
969 B
C++
/*
|
|
* Copyright (c) 2026, Tim Flynn <trflynn89@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
|
|
namespace HTTP {
|
|
|
|
enum class CacheMode : u8 {
|
|
// The cache is searched for a matching response. The cache is updated with the server's response.
|
|
Default,
|
|
|
|
// The cache is not searched for a matching response. The cache is not updated with the server's response.
|
|
NoStore,
|
|
|
|
// The cache is not searched for a matching response. The cache is updated with the server's response.
|
|
Reload,
|
|
|
|
// The cache is searched for a matching response, but must always revalidate. The cache is updated with the server's response.
|
|
NoCache,
|
|
|
|
// The cache is searched for a matching fresh or stale response. The cache is updated with the server's response.
|
|
ForceCache,
|
|
|
|
// The cache is searched for a matching fresh or stale response. A cache miss results in a network error.
|
|
OnlyIfCached,
|
|
};
|
|
|
|
}
|