ios


URLCache.shared behavior on iOS 9 and Above


According to the legacy docs, Apple provides a default NSURLCache implementation for all applications running on iOS 5 and above.
Applications that do not have special caching requirements or
constraints should find the default shared cache instance acceptable.
An application with more specific needs can create a custom NSURLCache
object and set it as the shared cache instance using
setSharedURLCache:. The application should do so before any calls to
this method.
The new API reference, however, does not specify this information on the current page for URLCache.shared.
My application has a requirement to not cache any network requests or responses. For applications targeting iOS 9 and above, does Apple still provide a shared NSURLCache? If so, how would I completely disable it, ignore it, or set the capacity to 0 for any NSURLSession requests?
Nothing changed in that area other than Apple's new developer docs site managing to take usability, searchability, and scannability to an all-time low. But I'm sure the information you seek is on one of the fifty or so subpages linked off the one you're looking at.
It was bad enough when it affected only their WWDC site. Now, the bad design seems to have metastasized. Sorry that it impacted your ability to write software as much as it has mine.
One word: rollback. Just saying.
But to answer your original question, yes, there's still a shared cache. They can't remove it without adversely affecting compatibility, realistically.
Note, however, that NSURLSession requests don't necessarily use the same cache, depending on how the session is configured. And the easiest way to avoid caching is still to use NSURLSession and explicitly nil out the session cache in the configuration. Of course, that only affects requests that you make yourself through that session (and not, for example, through a web view).

Related Links

could not cast value of type UIView to UIButton
iOS Metal buffer not honouring stride value
Regex capture group swift
Scroll Percentage of Cell with offset
Universal layout constraints
any workaround for an Apps using the FB to access an Apps user's friend's friends profile photo and name
App not stopped when launched for background fetch from Xcode
Accelerometer works in first game, but goes crazy in the second
Integration OpenAM - OAuth2 with iOS
How to set Background image to AVMutableVideoCompositionInstruction
assign in NON-ARC and retain cycle
Where can I view my PFUser objects in the Parse Data Browser?
Insert multiple row data same time sqlite with json ios
xmppframework: “Undefined symbols for architecture x86_64”
completion handler error in dispatch_async - optional unwrapping
UITableViewController Changes Size When View Tab Changes - Swift iOS

Categories

HOME
opencv
vb.net
printing
wix
elf
haskell-stack
styling
google-cloud-dataproc
libreoffice
wikipedia
xcode8
addeventlistener
wikipedia-api
avplayer
uwsgi
jquery-jtable
graph-tool
reload
numericupdown
amadeus
pywin32
durandal-2.0
slowcheetah
google-finance
ormlite-servicestack
broker
wso2cep
apache-httpcomponents
yii1.x
structure
physics
scalability
editorconfig
android-arrayadapter
c++builder-5
directx-12
react-redux-form
webcenter
fipy
perl-module
bem
sagepay
firedac
dxgi
php-5.5
permgen
sweet.js
android-studio-2.1
kendo-chart
android-calendar
uifont
xssf
dwr
jahia
jawr
angular-directive
getelementbyid
mapr
vs-2015-preview
mailcore2
hyperterm
android-location
multiple-files
tag-helpers
membership
ane
interpreted-language
symbian
many-to-one
wt
julian
treegrid
bloodhound
android-print-framework
zim-database
horizontalscrollview
culture
ratingbar
sendto
iqueryable
before-save
zeroclipboard
xcode6.1.1
deepzoom
magic-unipaas
modalpopupextender
notifyicon
ramdisk
blueprint
broadcom
emacs-jedi
memoization
mosek
progressdialog
speaker
hamlc
gigaspaces
msxsl
harvest
quilt
websolr
gemstone
nntp
mkmapviewdelegate
anemic-domain-model
resharper-4.5
development-machine
sharepoint-feature
code-statistics
sqlprofileprovider
case-tools

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App