- web-view嵌入的h5页面缓存严重,如何清除?
环境:项目为小程序webview嵌入h5 问题:每次发布之后(经过服务器重启),小程序访问的h5缓存严重,部分用户在发布完后的第二至三天仍有缓存。已在HTML页面头部增加cache-control:no-cache;expires:0 等meta标签,但是并没有什么作用 有什么办法可以清除缓存?(类似于浏览器窗口,会有菜单提供清除缓存、历史记录等)
2022-01-11 - 微信开发者工具上传代码时,提示 Error: read ECONNRESET?
在通过微信开发者工具的上传功能上传失败,以下是通过命令行上传时得到的返回,也不知道为什么是不是公司网段禁用了什么,但是微信的一些网站也是能能进的,麻烦有热心的小伙伴可以帮忙解答一下吗 --upload-info-output C:/Users/SunRen/git/miniProgram/info.json Initializing... idePortFile: C:\Users\SunRen\AppData\Local\微信开发者工具\User Data\Default\.ide IDE server has started, listening on http://127.0.0.1:24469 initialization finished uploading project... { i [StatusCodeError]: 400 - "{\"code\":40000,\"error\":\"错误 Error: read ECONN RESET\"}" at new i (C:\Users\SunRen\AppData\Roaming\Tencent\微信开发者工具\package.nw\ js\common\cli\index.js:157:46301) at H.callback (C:\Users\SunRen\AppData\Roaming\Tencent\微信开发者工具\packag e.nw\js\common\cli\index.js:157:45150) at H.e.callback.a.callback [as _callback] (C:\Users\SunRen\AppData\Roaming\T encent\微信开发者工具\package.nw\js\common\cli\index.js:157:44204) at H.a._callback.a.callback.a.callback (C:\Users\SunRen\AppData\Roaming\Tenc ent\微信开发者工具\package.nw\js\common\cli\index.js:187:5473) at H.emit (events.js:193:13) at H.<anonymous> (C:\Users\SunRen\AppData\Roaming\Tencent\微信开发者工具\pac kage.nw\js\common\cli\index.js:187:18286) at H.emit (events.js:193:13) at IncomingMessage.<anonymous> (C:\Users\SunRen\AppData\Roaming\Tencent\微信 开发者工具\package.nw\js\common\cli\index.js:187:17128) at Object.onceWrapper (events.js:281:20) at IncomingMessage.emit (events.js:198:15) name: 'StatusCodeError', statusCode: 400, message: '400 - "{\\"code\\":40000,\\"error\\":\\"错误 Error: read ECONNRESET\\"}"', error: '{"code":40000,"error":"错误 Error: read ECONNRESET"}', options: { url: 'http://127.0.0.1:24469/upload?cli=1&projectpath=C%253A%252FUsers%252FSunR en%252Fgit%252FminiProgram%252FCR1902543_Birthday_from_master&version=1.2.1&desc =%27correct&infooutput=C%253A%252FUsers%252FSunRen%252Fgit%252FminiProgram%252Fi nfo.json', resolveWithFullResponse: true, callback: [Function], transform: undefined, simple: true, transform2xxOnly: false }, response: IncomingMessage { _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: null, pipesCount: 0, flowing: true, ended: true, endEmitted: true, reading: false, sync: true, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, paused: false, emitClose: true, autoDestroy: false, destroyed: false, defaultEncoding: 'utf8', awaitDrain: 0, readingMore: true, decoder: null, encoding: null }, readable: false, _events: [Object: null prototype] { end: [Array], close: [Array], data: [Function], error: [Function] }, _eventsCount: 4, _maxListeners: undefined, socket: Socket { connecting: false, _hadError: false, _parent: null, _host: null, _readableState: [ReadableState], readable: true, _events: [Object], _eventsCount: 7, _maxListeners: undefined, _writableState: [WritableState], writable: false, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, parser: null, _httpMessage: [ClientRequest], [Symbol(asyncId)]: 36, [Symbol(kHandle)]: [TCP], [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 }, connection: Socket { connecting: false, _hadError: false, _parent: null, _host: null, _readableState: [ReadableState], readable: true, _events: [Object], _eventsCount: 7, _maxListeners: undefined, _writableState: [WritableState], writable: false, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, parser: null, _httpMessage: [ClientRequest], [Symbol(asyncId)]: 36, [Symbol(kHandle)]: [TCP], [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 }, httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: true, headers: { 'content-type': 'application/json; charset=utf-8', date: 'Mon, 03 Feb 2020 03:41:12 GMT', connection: 'close', 'transfer-encoding': 'chunked' }, rawHeaders: [ 'Content-Type', 'application/json; charset=utf-8', 'Date', 'Mon, 03 Feb 2020 03:41:12 GMT', 'Connection', 'close', 'Transfer-Encoding', 'chunked' ], trailers: {}, rawTrailers: [], aborted: false, upgrade: false, url: '', method: null, statusCode: 400, statusMessage: 'Bad Request', client: Socket { connecting: false, _hadError: false, _parent: null, _host: null, _readableState: [ReadableState], readable: true, _events: [Object], _eventsCount: 7, _maxListeners: undefined, _writableState: [WritableState], writable: false, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, parser: null, _httpMessage: [ClientRequest], [Symbol(asyncId)]: 36, [Symbol(kHandle)]: [TCP], [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 }, _consuming: false, _dumped: false, req: ClientRequest { _events: [Object], _eventsCount: 5, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, _last: true, chunkedEncoding: false, shouldKeepAlive: false, useChunkedEncodingByDefault: false, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: 0, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: [Socket], connection: [Socket], _header: 'GET /upload?cli=1&projectpath=C%253A%252FUsers%252FSunRen%252Fgit%252F miniProgram%252FCR1902543_Birthday_from_master&version=1.2.1&desc=%27correct&inf ooutput=C%253A%252FUsers%252FSunRen%252Fgit%252FminiProgram%252Finfo.json HTTP/1 .1\r\nhost: 127.0.0.1:24469\r\nConnection: close\r\n\r\n', _onPendingData: [Function: noopPendingOutput], agent: [Agent], socketPath: undefined, timeout: undefined, method: 'GET', path: '/upload?cli=1&projectpath=C%253A%252FUsers%252FSunRen%252Fgit%252Fmini Program%252FCR1902543_Birthday_from_master&version=1.2.1&desc=%27correct&infoout put=C%253A%252FUsers%252FSunRen%252Fgit%252FminiProgram%252Finfo.json', _ended: true, res: [Circular], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, [Symbol(isCorked)]: false, [Symbol(outHeadersKey)]: [Object] }, request: H { _events: [Object], _eventsCount: 5, _maxListeners: undefined, resolveWithFullResponse: true, readable: true, writable: true, _qs: [r], _auth: [c], _oauth: [u], _multipart: [s], _redirect: [r], _tunnel: [s], _rp_resolve: [Function], _rp_reject: [Function], _rp_promise: [Promise], _rp_callbackOrig: undefined, callback: [Function], _rp_options: [Object], headers: {}, setHeader: [Function], hasHeader: [Function], getHeader: [Function], removeHeader: [Function], method: 'GET', localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function], uri: [Url], proxy: null, tunnel: false, setHost: true, originalCookieHeader: undefined, _disableCookies: true, _jar: undefined, port: '24469', host: '127.0.0.1', path: '/upload?cli=1&projectpath=C%253A%252FUsers%252FSunRen%252Fgit%252Fmini Program%252FCR1902543_Birthday_from_master&version=1.2.1&desc=%27correct&infoout put=C%253A%252FUsers%252FSunRen%252Fgit%252FminiProgram%252Finfo.json', httpModule: [Object], agentClass: [Function], agent: [Agent], _started: true, href: 'http://127.0.0.1:24469/upload?cli=1&projectpath=C%253A%252FUsers%252FS unRen%252Fgit%252FminiProgram%252FCR1902543_Birthday_from_master&version=1.2.1&d esc=%27correct&infooutput=C%253A%252FUsers%252FSunRen%252Fgit%252FminiProgram%25 2Finfo.json', req: [ClientRequest], ntick: true, response: [Circular], originalHost: '127.0.0.1:24469', originalHostHeaderName: 'host', responseContent: [Circular], _destdata: true, _ended: true, _callbackCalled: true }, toJSON: [Function: L], caseless: t { dict: [Object] }, body: '{"code":40000,"error":"错误 Error: read ECONNRESET"}' } } C:\Program Files (x86)\Tencent\微信web开发者工具>
2020-02-03 - 小程序的URL长度限制长度
想知道 小程序页面url的长度有没有限制 因为内嵌web-view 需要 wx.miniProgram.navigateTo 跳转其他小程序页面,但是需要参数传递,so,想知道小程序页面url的长度限制
2019-04-23 - 引用pages同级文件夹下的文件
目录结构 - pages - utils -- dom-parse.js 引用方式 require('/utils/dom-parse.js') 报错信息 [图片] 以前从来都没有报过错。。。 今天突然就这样了
2019-03-22 - 公众平台中 录视频(安卓机)时间过长,无法记录
在公众号中 调微信录视频的接口, 用户使用安卓机进行视频录制时,当录制的时间超过53秒后,点击确定无法返回之前的页面,会直接跳转至 进入公众号的页面。 为什么?
2017-04-26