Skip to content

Commit

Permalink
Always ignore local cache data
Browse files Browse the repository at this point in the history
  • Loading branch information
kmikael committed Jun 1, 2014
1 parent ff87718 commit 70f67aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions PBWebViewController/PBWebViewController.h
Expand Up @@ -22,18 +22,20 @@
*/
@property (strong, nonatomic) NSURL *URL;

@property (nonatomic) BOOL forceReload;

/**
* The array of data objects on which to perform the activity.
* `@[self.URL]` is used if nothing is provided.
*/
@property (strong, nonatomic) NSArray *activityItems;

/** An array of `UIActivity` objects representing the custom services that your application supports. */
/**
* An array of `UIActivity` objects representing the custom services that your application supports.
*/
@property (strong, nonatomic) NSArray *applicationActivities;

/** The list of services that should not be displayed. */
/**
* The list of services that should not be displayed.
*/
@property (strong, nonatomic) NSArray *excludedActivityTypes;

/**
Expand Down
2 changes: 1 addition & 1 deletion PBWebViewController/PBWebViewController.m
Expand Up @@ -50,7 +50,7 @@ - (void)commonInit

- (void)load
{
NSURLRequest *request = [NSURLRequest requestWithURL:self.URL cachePolicy:(self.forceReload ? NSURLRequestReloadIgnoringLocalCacheData : NSURLRequestReloadRevalidatingCacheData) timeoutInterval:4.0f];
NSURLRequest *request = [NSURLRequest requestWithURL:self.URL cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:4.0];
[self.webView loadRequest:request];

if (self.navigationController.toolbarHidden) {
Expand Down

0 comments on commit 70f67aa

Please sign in to comment.