Skip to content

Commit

Permalink
MangaHere: Remove no-cache header (#5259)
Browse files Browse the repository at this point in the history
remove no cache
  • Loading branch information
bapeey authored and cuong-tran committed Sep 27, 2024
1 parent a3026ac commit 3e35e15
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion src/en/mangahere/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext {
extName = 'Mangahere'
extClass = '.Mangahere'
extVersionCode = 20
extVersionCode = 21
}

apply from: "$rootDir/common.gradle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class Mangahere : ParsedHttpSource() {

override fun headersBuilder(): Headers.Builder = super.headersBuilder()
.set("Referer", "$baseUrl/")
.set("Cache-Control", "no-cache")

private val cookieInterceptor = CookieInterceptor(
baseUrl.substringAfter("://"),
Expand All @@ -47,13 +46,6 @@ class Mangahere : ParsedHttpSource() {

private val notRateLimitClient: OkHttpClient = network.cloudflareClient.newBuilder()
.addNetworkInterceptor(cookieInterceptor)
.addNetworkInterceptor { chain ->
val newRequest = chain.request().newBuilder()
.header("Cache-Control", "no-cache")
.removeHeader("If-Modified-Since")
.build()
chain.proceed(newRequest)
}
.build()

override val client: OkHttpClient = notRateLimitClient.newBuilder()
Expand Down

0 comments on commit 3e35e15

Please sign in to comment.