ionic-team / ionic-v3

The repo for Ionic 3.x. For the latest version of Ionic, please see https://github.com/ionic-team/ionic
Other
129 stars 86 forks source link

bug: Why ionic generate HTTP network cache log at device #1122

Closed yangguansen closed 3 years ago

yangguansen commented 3 years ago

I'm submitting a ... (check one with "x") [x] bug report [ ] feature request

Current behavior:

I use with ionic, when I install on my phone, there is generate Http network cache log file on my phone. Expected behavior:

Don't generate HTTP network log file. Steps to reproduce:

1.Init a ionic project 2.make a HTTP request 3.build and run at real phone 4.Computer connected to mobile phone, debug the phone, and find generate HTTP network log file in APP folder. The file path: /private/var/mobile/Containers/Data/Application/CBA40190-9C78-4441-85DA-9B7D1DAC64BB/Library/Caches/WebKit/NetworkCache/Version 14/Records/1C658CC0A2F456789A5B94ABC2D6F2352EA1683D/Resource/696B004154237148C696BD2B33CD11E075A26085 Related code:

insert short code snippets here

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Ionic:

   ionic (Ionic CLI)  : 4.2.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.0

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 7.1.1, ios 5.1.1
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.2.0, (and 24 other plugins)

System:

   Android SDK Tools : 26.1.1 (/Users/yangguansen/Library/Android/sdk)
   ios-deploy        : 1.9.4
   ios-sim           : 8.0.2
   NodeJS            : v10.16.3 (/usr/local/bin/node)
   npm               : 6.9.0
   OS                : macOS
   Xcode             : Xcode 11.1 Build version 11A1027
yangguansen commented 3 years ago

It's reason of server HTTP response-header cache.