Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐞] The behaviour of the cache has changed 1.5.0 (cloudflare) #5947

Closed
dejurin opened this issue Mar 5, 2024 · 13 comments · Fixed by #5952
Closed

[🐞] The behaviour of the cache has changed 1.5.0 (cloudflare) #5947

dejurin opened this issue Mar 5, 2024 · 13 comments · Fixed by #5952
Labels
STATUS-1: needs triage New issue which needs to be triaged TYPE: bug Something isn't working

Comments

@dejurin
Copy link
Contributor

dejurin commented Mar 5, 2024

Which component is affected?

Qwik City (routing)

Describe the bug

After upgrading from 1.4.5 to 1.5.0 version, the cache stopped working as intended on cloudflare pages.

Headers - 1.4.5 with HIT
https://1-4-5.pwa-example-6dn.pages.dev/
Screenshot 2024-03-05 at 01 19 37

Headers - 1.5.0
https://pwa-example-6dn.pages.dev/
Screenshot 2024-03-05 at 01 21 40

An example of code that doesn't work as intended.

export const onGet: RequestHandler = async ({ cacheControl }) => {
  cacheControl({
    staleWhileRevalidate: 60 * 60 * 24 * 7,
    maxAge: 10,
    sMaxAge: 15,
  });
};

Reproduction

https://github.com/dejurin/pwa-example

Steps to reproduce

Deployment log

2024-03-04T23:52:52.760642Z	Cloning repository...
2024-03-04T23:52:53.666236Z	From https://github.com/dejurin/pwa-example
2024-03-04T23:52:53.666883Z	 * branch            4de47c90f2f8b0d5592d9f1b0459836044ccee99 -> FETCH_HEAD
2024-03-04T23:52:53.667052Z	
2024-03-04T23:52:53.723191Z	HEAD is now at 4de47c9 Merge pull request #2 from dejurin/bun
2024-03-04T23:52:53.723755Z	
2024-03-04T23:52:53.822793Z	
2024-03-04T23:52:53.823484Z	Using v2 root directory strategy
2024-03-04T23:52:53.854144Z	Success: Finished cloning repository files
2024-03-04T23:52:55.462275Z	Detected the following tools from environment: bun@1.0.5, nodejs@18.17.1
2024-03-04T23:52:55.463037Z	Installing bun 1.0.5
2024-03-04T23:52:55.612526Z	Downloading Bun v1.0.5...
2024-03-04T23:52:56.708608Z	Archive:  /tmp/asdf-bun.vFE3/bun.zip
2024-03-04T23:52:57.493945Z	  inflating: /opt/buildhome/.asdf/downloads/bun/1.0.5/bun  
2024-03-04T23:52:57.561936Z	Installing Bun v1.0.5...
2024-03-04T23:52:57.676657Z	Bun v1.0.5 is installed successfully!
2024-03-04T23:52:58.067955Z	Installing project dependencies: bun install --frozen-lockfile
2024-03-04T23:52:58.317533Z	bun install v1.0.5 (1bf28e0d)
2024-03-04T23:53:02.263946Z	 + @builder.io/qwik@1.5.0
2024-03-04T23:53:02.264216Z	 + @builder.io/qwik-city@1.5.0
2024-03-04T23:53:02.264396Z	 + @qwikdev/pwa@0.0.4
2024-03-04T23:53:02.264597Z	 + @types/eslint@8.56.5
2024-03-04T23:53:02.264833Z	 + @types/node@20.11.24
2024-03-04T23:53:02.264976Z	 + @typescript-eslint/eslint-plugin@7.1.1
2024-03-04T23:53:02.265135Z	 + @typescript-eslint/parser@7.1.1
2024-03-04T23:53:02.265307Z	 + @vite-pwa/assets-generator@0.2.4
2024-03-04T23:53:02.265434Z	 + eslint@8.57.0
2024-03-04T23:53:02.265618Z	 + eslint-plugin-qwik@1.5.0
2024-03-04T23:53:02.265764Z	 + fast-glob@3.3.2
2024-03-04T23:53:02.265898Z	 + prettier@3.2.5
2024-03-04T23:53:02.266014Z	 + typescript@5.3.3
2024-03-04T23:53:02.266158Z	 + undici@6.7.0
2024-03-04T23:53:02.266313Z	 + vite@5.1.5
2024-03-04T23:53:02.266458Z	 + vite-tsconfig-paths@4.3.1
2024-03-04T23:53:02.26662Z	 + wrangler@3.30.1
2024-03-04T23:53:02.645629Z	
2024-03-04T23:53:02.645987Z	 429 packages installed [3.95s]
2024-03-04T23:53:02.650363Z	Executing user command: bun run build
2024-03-04T23:53:02.929742Z	$ qwik build
2024-03-04T23:53:03.228877Z	
2024-03-04T23:53:03.229162Z	      ............
2024-03-04T23:53:03.229758Z	    .::: :--------:.
2024-03-04T23:53:03.229917Z	   .::::  .:-------:.
2024-03-04T23:53:03.230065Z	  .:::::.   .:-------.
2024-03-04T23:53:03.23023Z	  ::::::.     .:------.
2024-03-04T23:53:03.230367Z	 ::::::.        :-----:
2024-03-04T23:53:03.230506Z	 ::::::.       .:-----.
2024-03-04T23:53:03.230639Z	  :::::::.     .-----.
2024-03-04T23:53:03.230765Z	   ::::::::..   ---:.
2024-03-04T23:53:03.230898Z	    .:::::::::. :-:.
2024-03-04T23:53:03.231174Z	     ..::::::::::::
2024-03-04T23:53:03.231331Z	             ...::::
2024-03-04T23:53:03.231636Z	     
2024-03-04T23:53:03.231883Z	
2024-03-04T23:53:03.23201Z	
2024-03-04T23:53:03.232242Z	bun run build.client
2024-03-04T23:53:03.232397Z	bun run build.server
2024-03-04T23:53:03.232552Z	
2024-03-04T23:53:03.244799Z	$ vite build
2024-03-04T23:53:03.483513Z	�[33mThe CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.�[39m
2024-03-04T23:53:04.224702Z	�[36mvite v5.1.5 �[32mbuilding for production...�[36m�[39m
2024-03-04T23:53:04.438112Z	transforming...
2024-03-04T23:53:05.803138Z	�[32m✓�[39m 103 modules transformed.
2024-03-04T23:53:05.893297Z	rendering chunks...
2024-03-04T23:53:05.949311Z	computing gzip size...
2024-03-04T23:53:05.96Z	�[2mdist/�[22m�[32mbuild/q-bundle-graph-kl1lc1.json  �[39m�[1m�[2m 0.78 kB�[22m�[1m�[22m�[2m │ gzip:  0.41 kB�[22m
2024-03-04T23:53:05.960327Z	�[2mdist/�[22m�[32mqwik-prefetch-service-worker.js   �[39m�[1m�[2m 3.53 kB�[22m�[1m�[22m
2024-03-04T23:53:05.960512Z	�[2mdist/�[22m�[32mbuild/q-uOW82FhY.webp             �[39m�[1m�[2m 4.45 kB�[22m�[1m�[22m
2024-03-04T23:53:05.960692Z	�[2mdist/�[22m�[32mbuild/q-4fKdvPuU.webp             �[39m�[1m�[2m 9.26 kB�[22m�[1m�[22m
2024-03-04T23:53:05.960861Z	�[2mdist/�[22m�[32mbuild/q-D1GWFvML.webp             �[39m�[1m�[2m13.65 kB�[22m�[1m�[22m
2024-03-04T23:53:05.961013Z	�[2mdist/�[22m�[32mbuild/q-CoVGs9lf.webp             �[39m�[1m�[2m19.02 kB�[22m�[1m�[22m
2024-03-04T23:53:05.961175Z	�[2mdist/�[22m�[32mbuild/q-DD7BZciK.webp             �[39m�[1m�[2m29.65 kB�[22m�[1m�[22m
2024-03-04T23:53:05.961328Z	�[2mdist/�[22m�[32mq-manifest.json                   �[39m�[1m�[2m32.35 kB�[22m�[1m�[22m�[2m │ gzip:  5.66 kB�[22m
2024-03-04T23:53:05.961481Z	�[2mdist/�[22m�[35mbuild/q-DKVIvDmV.css              �[39m�[1m�[2m 3.99 kB�[22m�[1m�[22m�[2m │ gzip:  1.27 kB�[22m
2024-03-04T23:53:05.961622Z	�[2mdist/�[22m�[36mbuild/q-oTTdINPC.js               �[39m�[1m�[2m 0.26 kB�[22m�[1m�[22m�[2m │ gzip:  0.22 kB�[22m
2024-03-04T23:53:05.961774Z	�[2mdist/�[22m�[36mbuild/q-rWN8kBy4.js               �[39m�[1m�[2m 0.32 kB�[22m�[1m�[22m�[2m │ gzip:  0.21 kB�[22m
2024-03-04T23:53:05.961937Z	�[2mdist/�[22m�[36mbuild/q-ByQxC4Pj.js               �[39m�[1m�[2m 0.32 kB�[22m�[1m�[22m�[2m │ gzip:  0.21 kB�[22m
2024-03-04T23:53:05.962085Z	�[2mdist/�[22m�[36mbuild/q-D7i10m17.js               �[39m�[1m�[2m 0.34 kB�[22m�[1m�[22m�[2m │ gzip:  0.23 kB�[22m
2024-03-04T23:53:05.962247Z	�[2mdist/�[22m�[36mbuild/q-BGqf9dmN.js               �[39m�[1m�[2m 0.34 kB�[22m�[1m�[22m�[2m │ gzip:  0.23 kB�[22m
2024-03-04T23:53:05.962389Z	�[2mdist/�[22m�[36mbuild/q-Bo9kneAM.js               �[39m�[1m�[2m 0.37 kB�[22m�[1m�[22m�[2m │ gzip:  0.25 kB�[22m
2024-03-04T23:53:05.962525Z	�[2mdist/�[22m�[36mbuild/q-Df1hi_6z.js               �[39m�[1m�[2m 0.44 kB�[22m�[1m�[22m�[2m │ gzip:  0.29 kB�[22m
2024-03-04T23:53:05.962676Z	�[2mdist/�[22m�[36mbuild/q-ClyQ8LFB.js               �[39m�[1m�[2m 0.45 kB�[22m�[1m�[22m�[2m │ gzip:  0.31 kB�[22m
2024-03-04T23:53:05.962828Z	�[2mdist/�[22m�[36mbuild/q-DUFzYTS4.js               �[39m�[1m�[2m 0.47 kB�[22m�[1m�[22m�[2m │ gzip:  0.32 kB�[22m
2024-03-04T23:53:05.962979Z	�[2mdist/�[22m�[36mbuild/q-CS5fJtNI.js               �[39m�[1m�[2m 0.53 kB�[22m�[1m�[22m�[2m │ gzip:  0.36 kB�[22m
2024-03-04T23:53:05.963155Z	�[2mdist/�[22m�[36mbuild/q-DTf7Hh7b.js               �[39m�[1m�[2m 0.54 kB�[22m�[1m�[22m�[2m │ gzip:  0.35 kB�[22m
2024-03-04T23:53:05.963318Z	�[2mdist/�[22m�[36mbuild/q-COTBLMsl.js               �[39m�[1m�[2m 0.55 kB�[22m�[1m�[22m�[2m │ gzip:  0.36 kB�[22m
2024-03-04T23:53:05.963477Z	�[2mdist/�[22m�[36mbuild/q-CZBGMWJY.js               �[39m�[1m�[2m 0.67 kB�[22m�[1m�[22m�[2m │ gzip:  0.39 kB�[22m
2024-03-04T23:53:05.963631Z	�[2mdist/�[22m�[36mbuild/q-owYM9Vm6.js               �[39m�[1m�[2m 0.70 kB�[22m�[1m�[22m�[2m │ gzip:  0.44 kB�[22m
2024-03-04T23:53:05.963795Z	�[2mdist/�[22m�[36mbuild/q-B7hay3xu.js               �[39m�[1m�[2m 0.75 kB�[22m�[1m�[22m�[2m │ gzip:  0.46 kB�[22m
2024-03-04T23:53:05.964004Z	�[2mdist/�[22m�[36mbuild/q-SK_fXwrg.js               �[39m�[1m�[2m 0.90 kB�[22m�[1m�[22m�[2m │ gzip:  0.56 kB�[22m
2024-03-04T23:53:05.964181Z	�[2mdist/�[22m�[36mbuild/q-C7WaQ5sh.js               �[39m�[1m�[2m 0.96 kB�[22m�[1m�[22m�[2m │ gzip:  0.51 kB�[22m
2024-03-04T23:53:05.964333Z	�[2mdist/�[22m�[36mbuild/q-ETGAxx6b.js               �[39m�[1m�[2m 1.00 kB�[22m�[1m�[22m�[2m │ gzip:  0.61 kB�[22m
2024-03-04T23:53:05.964481Z	�[2mdist/�[22m�[36mbuild/q-DlCjX12J.js               �[39m�[1m�[2m 1.08 kB�[22m�[1m�[22m�[2m │ gzip:  0.51 kB�[22m
2024-03-04T23:53:05.964637Z	�[2mdist/�[22m�[36mbuild/q-D4c-UGQi.js               �[39m�[1m�[2m 1.20 kB�[22m�[1m�[22m�[2m │ gzip:  0.62 kB�[22m
2024-03-04T23:53:05.964801Z	�[2mdist/�[22m�[36mbuild/q-k-g9NGwt.js               �[39m�[1m�[2m 1.21 kB�[22m�[1m�[22m�[2m │ gzip:  0.73 kB�[22m
2024-03-04T23:53:05.964967Z	�[2mdist/�[22m�[36mbuild/q-DevLU8ED.js               �[39m�[1m�[2m 1.32 kB�[22m�[1m�[22m�[2m │ gzip:  0.65 kB�[22m
2024-03-04T23:53:05.965131Z	�[2mdist/�[22m�[36mbuild/q-BnQQxcq5.js               �[39m�[1m�[2m 1.34 kB�[22m�[1m�[22m�[2m │ gzip:  0.73 kB�[22m
2024-03-04T23:53:05.965286Z	�[2mdist/�[22m�[36mbuild/q-CSkUDYkb.js               �[39m�[1m�[2m 1.68 kB�[22m�[1m�[22m�[2m │ gzip:  0.81 kB�[22m
2024-03-04T23:53:05.965429Z	�[2mdist/�[22m�[36mbuild/q-RrXtW-Ia.js               �[39m�[1m�[2m 1.79 kB�[22m�[1m�[22m�[2m │ gzip:  0.95 kB�[22m
2024-03-04T23:53:05.965594Z	�[2mdist/�[22m�[36mbuild/q-BaYhSzA6.js               �[39m�[1m�[2m 1.82 kB�[22m�[1m�[22m�[2m │ gzip:  0.96 kB�[22m
2024-03-04T23:53:05.965749Z	�[2mdist/�[22m�[36mbuild/q-fJkQnue_.js               �[39m�[1m�[2m 2.29 kB�[22m�[1m�[22m�[2m │ gzip:  1.11 kB�[22m
2024-03-04T23:53:05.965896Z	�[2mdist/�[22m�[36mbuild/q-D8HmNdzH.js               �[39m�[1m�[2m 2.87 kB�[22m�[1m�[22m�[2m │ gzip:  1.31 kB�[22m
2024-03-04T23:53:05.966045Z	�[2mdist/�[22m�[36mbuild/q-BEyeUROJ.js               �[39m�[1m�[2m 2.94 kB�[22m�[1m�[22m�[2m │ gzip:  1.01 kB�[22m
2024-03-04T23:53:05.966198Z	�[2mdist/�[22m�[36mbuild/q-CRh1AJGY.js               �[39m�[1m�[2m 3.82 kB�[22m�[1m�[22m�[2m │ gzip:  1.84 kB�[22m
2024-03-04T23:53:05.96636Z	�[2mdist/�[22m�[36mbuild/q-DExqyLTW.js               �[39m�[1m�[2m 5.43 kB�[22m�[1m�[22m�[2m │ gzip:  2.18 kB�[22m
2024-03-04T23:53:05.966509Z	�[2mdist/�[22m�[36mbuild/q-DaxRpUUz.js               �[39m�[1m�[2m 6.11 kB�[22m�[1m�[22m�[2m │ gzip:  2.57 kB�[22m
2024-03-04T23:53:05.966662Z	�[2mdist/�[22m�[36mbuild/q-B2_GtjtO.js               �[39m�[1m�[2m10.03 kB�[22m�[1m�[22m�[2m │ gzip:  4.61 kB�[22m
2024-03-04T23:53:05.966893Z	�[2mdist/�[22m�[36mservice-worker.js                 �[39m�[1m�[2m38.04 kB�[22m�[1m�[22m�[2m │ gzip: 12.17 kB�[22m
2024-03-04T23:53:05.967045Z	�[2mdist/�[22m�[36mbuild/q-DgtZeI87.js               �[39m�[1m�[2m52.60 kB�[22m�[1m�[22m�[2m │ gzip: 21.46 kB�[22m
2024-03-04T23:53:05.971615Z	�[32m✓ built in 1.72s�[39m
2024-03-04T23:53:06.131978Z	
2024-03-04T23:53:06.132325Z	✓ Built client modules
2024-03-04T23:53:06.142283Z	�[0m�[2m�[35m$�[0m �[2m�[1mvite build -c adapters/cloudflare-pages/vite.config.ts�[0m
2024-03-04T23:53:06.40851Z	�[33mThe CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.�[39m
2024-03-04T23:53:07.1168Z	�[36mvite v5.1.5 �[32mbuilding SSR bundle for production...�[36m�[39m
2024-03-04T23:53:09.607224Z	transforming...
2024-03-04T23:53:09.725673Z	�[33m[vite-plugin-qwik](warn): useVisibleTask$() runs eagerly and blocks the main thread, preventing user interaction until the task is finished. Consider using useTask$(), useOn(), useOnDocument(), or useOnWindow() instead. If you have to use a useVisibleTask$(), you can disable the warning with a '// eslint-disable-next-line qwik/no-use-visible-task' comment.
2024-03-04T23:53:09.725987Z	
2024-03-04T23:53:09.726448Z	�[97m  /opt/buildhome/repo/src/routes/demo/flower/index.tsx:19:3
2024-03-04T23:53:09.726609Z	
2024-03-04T23:53:09.726754Z	  �[90m
2024-03-04T23:53:09.726889Z	�[0m
2024-03-04T23:53:11.72369Z	�[32m✓�[39m 42 modules transformed.
2024-03-04T23:53:11.811819Z	rendering chunks...
2024-03-04T23:53:11.869275Z	�[2mserver/�[22m�[35mbuild/q-BqbdkZLO.css       �[39m�[1m�[2m  3.99 kB�[22m�[1m�[22m
2024-03-04T23:53:11.869858Z	�[2mserver/�[22m�[36mentry.ssr.js               �[39m�[1m�[2m  0.08 kB�[22m�[1m�[22m
2024-03-04T23:53:11.870044Z	�[2mserver/�[22m�[36mentry.cloudflare-pages.js  �[39m�[1m�[2m 20.14 kB�[22m�[1m�[22m
2024-03-04T23:53:11.870209Z	�[2mserver/�[22m�[36m@qwik-city-plan.js         �[39m�[1m�[2m 21.99 kB�[22m�[1m�[22m
2024-03-04T23:53:11.870314Z	�[2mserver/�[22m�[36mq-D0lD6laQ.js              �[39m�[1m�[2m 41.06 kB�[22m�[1m�[22m
2024-03-04T23:53:11.870408Z	�[2mserver/�[22m�[36mq-DY7z9SpO.js              �[39m�[1m�[2m139.43 kB�[22m�[1m�[22m
2024-03-04T23:53:11.870504Z	�[32m✓ built in 4.72s�[39m
2024-03-04T23:53:11.92153Z	
2024-03-04T23:53:11.921829Z	�[1m�[32mStarting Qwik City SSG...�[39m�[22m
2024-03-04T23:53:11.929858Z	
2024-03-04T23:53:11.93008Z	�[32mSSG results�[39m
2024-03-04T23:53:11.930298Z	- Duration: �[2m7.5 ms�[22m
2024-03-04T23:53:11.930412Z	
2024-03-04T23:53:12.912123Z	✓ Built server (ssr) modules
2024-03-04T23:53:12.912456Z	
2024-03-04T23:53:12.928435Z	Finished
2024-03-04T23:53:12.929147Z	Found _worker.js in output directory. Uploading.
2024-03-04T23:53:14.171357Z	✨ Compiled Worker successfully
2024-03-04T23:53:14.22773Z	Found _routes.json in output directory. Uploading.
2024-03-04T23:53:14.241052Z	Validating asset output directory
2024-03-04T23:53:15.34127Z	Deploying your site to Cloudflare's global network...
2024-03-04T23:53:20.734584Z	Parsed 0 valid redirect rules.
2024-03-04T23:53:20.735204Z	Parsed 1 valid header rule.
2024-03-04T23:53:22.316624Z	Uploading... (59/59)
2024-03-04T23:53:22.317239Z	✨ Success! Uploaded 0 files (59 already uploaded) (0.63 sec)
2024-03-04T23:53:22.317383Z	
2024-03-04T23:53:22.687563Z	✨ Upload complete!
2024-03-04T23:53:27.656073Z	Success: Assets published!
2024-03-04T23:53:30.883518Z	Success: Your site was deployed!

System Info

Hosting: Cloudflare Pages

My system:
  System:
    OS: macOS 14.3.1
    CPU: (11) arm64 Apple M3 Pro
    Memory: 106.17 MB / 18.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.19.1 - /opt/homebrew/opt/node@18/bin/node
    npm: 10.2.4 - /opt/homebrew/opt/node@18/bin/npm
    pnpm: 8.13.1 - /opt/homebrew/bin/pnpm
    bun: 1.0.30 - ~/.bun/bin/bun
  Browsers:
    Brave Browser: 121.1.62.165
    Chrome: 122.0.6261.94
    Edge: 122.0.2365.63
    Safari: 17.3.1
  npmPackages:
    @builder.io/qwik: ^1.5.0 => 1.5.0 
    @builder.io/qwik-city: ^1.5.0 => 1.5.0 
    undici: ^6.7.0 => 6.7.0 
    vite: ^5.1.5 => 5.1.5

Additional Information

No response

@dejurin dejurin added STATUS-1: needs triage New issue which needs to be triaged TYPE: bug Something isn't working labels Mar 5, 2024
@wmertens
Copy link
Member

wmertens commented Mar 5, 2024

The only commit I can think of that did something is this 1995753 - what seemed like a bugfix in that it waits until the SSR result completed to store the result to cache.

Could that explain what you're seeing? I don't understand what you're suppposed to get in your repro.

@wmertens
Copy link
Member

wmertens commented Mar 5, 2024

Actually you can verify if that's the commit by using the build from the commit before it - https://github.com/BuilderIO/qwik-build/tree/2c7014d476ba9223f1467aabbd8ddd23ff051fbf - see the instructions there.

@dejurin
Copy link
Contributor Author

dejurin commented Mar 5, 2024

The only commit I can think of that did something is this 1995753 - what seemed like a bugfix in that it waits until the SSR result completed to store the result to cache.

Could that explain what you're seeing? I don't understand what you're suppposed to get in your repro.

Thank you for response.
It's not clear, to me, the behavior of the cache after the update. Let me explain my observations.

@wmertens
Copy link
Member

wmertens commented Mar 5, 2024

Can you try building with the link I gave you?

@dejurin
Copy link
Contributor Author

dejurin commented Mar 5, 2024

Can you try building with the link I gave you?

So, I built.

Work with a 15-seconds delay.
1995753 fix(cloudflare): wait to cache until response complete (#3679) - before

https://ad8f1782.pwa-example-6dn.pages.dev/

    "@builder.io/qwik": "github:BuilderIO/qwik-build#8212a8a75e414cf9ccbc0f4c863a4a4a5580e0d9",
    "@builder.io/qwik-city": "github:BuilderIO/qwik-city-build#12ea064643102110f0a7b674c5c03efaea4080e0",

Works the same as in version 1.5.0
b85761c fix(create-app): tmpdir handling (#5938) - before

https://ada7fe68.pwa-example-6dn.pages.dev/

    "@builder.io/qwik": "github:BuilderIO/qwik-build#1573c1c6e9cfb1b174660a45824d0586ded64627",
    "@builder.io/qwik-city": "github:BuilderIO/qwik-city-build#01ce000902a58a7eaf2503a0164f97992e1cf58c",

@wmertens
Copy link
Member

wmertens commented Mar 5, 2024

Ok so it wasn't that commit then. Could you try building with previous commits after the 1.4.5 commit? You can binary search or just guess which commit might be the culprit based on the contents

@dejurin
Copy link
Contributor Author

dejurin commented Mar 5, 2024

If I understand correctly, that's the 1995753 fix(cloudflare): wait to cache until response complete (#3679) reason

@wmertens
Copy link
Member

wmertens commented Mar 5, 2024

Ok so you can confirm that the commit I gave you does not have the problem you're seeing in 1.5.0?

@dejurin
Copy link
Contributor Author

dejurin commented Mar 5, 2024

Ok so you can confirm that the commit I gave you does not have the problem you're seeing in 1.5.0?

yep, your commit b85761c fix(create-app): tmpdir handling (#5938) is work well. It does not affect the behavior of the cache.

@wmertens
Copy link
Member

wmertens commented Mar 5, 2024

Wait that doesn't make sense at all, that commit comes after the commit that adds the cloudflare wait. It should fail.

@wmertens
Copy link
Member

wmertens commented Mar 5, 2024

Rereading this, it looks like the one I gave you is indeed working and you accidentally gave me the commit after the broken commit as the fixed one.

I will revert the waitUntil patch

@wmertens
Copy link
Member

wmertens commented Mar 5, 2024

@dejurin I'll release 1.5.1 soon. Maybe you can open a case with CloudFlare to have them look at why waitUntil breaks their caching? Point them at #5952

@dejurin
Copy link
Contributor Author

dejurin commented Mar 5, 2024

cloudflare/cloudflared#1196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
STATUS-1: needs triage New issue which needs to be triaged TYPE: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants