forked from github/szkolny
[API] Disable API caching for signed builds.
This commit is contained in:
parent
e389e6c073
commit
72319a4613
@ -15,6 +15,7 @@ class ApiCacheInterceptor(val app: App) : Interceptor {
|
||||
val request = chain.request()
|
||||
if (request.url().host() == "api.szkolny.eu"
|
||||
&& Signing.appCertificate.md5() == app.config.apiInvalidCert
|
||||
&& !app.buildManager.isSigned
|
||||
) {
|
||||
val response = ApiResponse<Unit>(
|
||||
success = false,
|
||||
|
Loading…
Reference in New Issue
Block a user