You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using cloudflare pages for my frontend.
Recently i tried to migrate it to worker new asset binding.
But i noticed the site become little slow, when i looked for the cause i found the CF Pages app respect _header and return response with cache
but when i tested a skelton app with worker.dev asset binding it return
Can u allow _header file in worker asset binding too, it will solve the performance issue.
Thank you
The text was updated successfully, but these errors were encountered:
(As an aside, and I know it's not what you're asking for here-- you could use a experimental_serve_directly=false along with a worker to dynamically fetch your assets. You then could modify the cache-control header yourself before sending the response back. The downside to this is that worker invocations count towards chargeable requests (but might work for smaller sites)).
(As an aside, and I know it's not what you're asking for here-- you could use a experimental_serve_directly=false along with a worker to dynamically fetch your assets. You then could modify the cache-control header yourself before sending the response back. The downside to this is that worker invocations count towards chargeable requests (but might work for smaller sites)).
Yes i tried that but as u mentioned it count as invocation and its not ideal for my use case where we have thousands js chunks
Describe the solution
Hi,
I have been using cloudflare pages for my frontend.
Recently i tried to migrate it to worker new asset binding.
But i noticed the site become little slow, when i looked for the cause i found the CF Pages app respect _header and return response with cache
but when i tested a skelton app with worker.dev asset binding it return
Can u allow _header file in worker asset binding too, it will solve the performance issue.
Thank you
The text was updated successfully, but these errors were encountered: