Skip to content

Commit ee6f66b

Browse files
authored
Merge pull request #91 from alseageo/no-cache-ios
set cacheAge to 0 so resources are always revalidated like on Android
2 parents bcee21a + 034c04e commit ee6f66b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/FPStaticServer.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ - (dispatch_queue_t)methodQueue
7777
NSString *basePath = @"/";
7878
NSString *directoryPath = self.www_root;
7979
NSString *indexFilename = @"index.html";
80-
NSUInteger cacheAge = 3600;
80+
NSUInteger cacheAge = 0;
8181
BOOL allowRangeRequests = YES;
8282
[_webServer addHandlerWithMatchBlock:^GCDWebServerRequest*(NSString* requestMethod, NSURL* requestURL, NSDictionary<NSString*, NSString*>* requestHeaders, NSString* urlPath, NSDictionary<NSString*, NSString*>* urlQuery) {
8383
if (![requestMethod isEqualToString:@"GET"]) {

0 commit comments

Comments
 (0)