Title: workers.api.error.invalid_route_script_missing (err code: 10019 )
Last modified: February 21, 2021

---

# workers.api.error.invalid_route_script_missing (err code: 10019 )

 *  Resolved [Zakir Sajib](https://wordpress.org/support/users/zakirstage/)
 * (@zakirstage)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/workers-api-error-invalid_route_script_missing-err-code-10019/)
 * I tried to enable the worker mode, save the changes and purge complete cache 
   and then click the enable page cache now button and then it shows following message:
 * workers.api.error.invalid_route_script_missing (err code: 10019 )
 * I tried few times but still having same issue.
 * Any help would be helpful.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fworkers-api-error-invalid_route_script_missing-err-code-10019%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Thread Starter [Zakir Sajib](https://wordpress.org/support/users/zakirstage/)
 * (@zakirstage)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/workers-api-error-invalid_route_script_missing-err-code-10019/#post-14080460)
 * These are http calls made when i click the enable page cache now button:
 * [https://prnt.sc/102rn2q](https://prnt.sc/102rn2q)
 * The error screenshot is:
 * [https://tinyurl.com/ybj4b3nd](https://tinyurl.com/ybj4b3nd)
 *  Thread Starter [Zakir Sajib](https://wordpress.org/support/users/zakirstage/)
 * (@zakirstage)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/workers-api-error-invalid_route_script_missing-err-code-10019/#post-14080553)
 * fixed.
 *  Plugin Contributor [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/workers-api-error-invalid_route_script_missing-err-code-10019/#post-14084072)
 * Hi [@zakirstage](https://wordpress.org/support/users/zakirstage/),
    Were you 
   trying to overwrite the default worker script? What was the cause of the issue?
 *  Thread Starter [Zakir Sajib](https://wordpress.org/support/users/zakirstage/)
 * (@zakirstage)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/workers-api-error-invalid_route_script_missing-err-code-10019/#post-14084908)
 * Sure.
 * There were 3 workers code existed before on same domain. And also later I understood
   api was accessing my account instead of my client account as I setup their cloudflare.
   Then I asked their password and get the api and then it works.
 * Now one issue.
 * What I notice home page first shows in browser console HIT in GET method but 
   later in POST method it shows dynamic and the value:
    x-wp-cf-super-cache-worker-
   bypass-reason: caching not possible for req method POST
 * Please visit the site: [https://www.shopbylocals.com](https://www.shopbylocals.com).
   Use the network tab and in html tab , and load the site.
 *  Plugin Contributor [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/workers-api-error-invalid_route_script_missing-err-code-10019/#post-14085014)
 * Hi [@zakirstage](https://wordpress.org/support/users/zakirstage/),
    Yes one specific
   route can be pointed to one worker only.
 * I visited the site and as I can see the caching is working perfectly. No issues.
   Only GET & HEAD requests are supposed to be cached. POST and other types of requests
   should never ever be cached by any system.
 *  Thread Starter [Zakir Sajib](https://wordpress.org/support/users/zakirstage/)
 * (@zakirstage)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/workers-api-error-invalid_route_script_missing-err-code-10019/#post-14085112)
 * ALright.
 * Another question: Is there any way I can merge your existing worker code?
 * for example this one:
    [https://gist.github.com/isaumya/c2667b737d4e1e48a8ebb0df24b89a39](https://gist.github.com/isaumya/c2667b737d4e1e48a8ebb0df24b89a39)
 * and this one too:
 * [https://github.com/pmeenan/cf-workers/tree/master/optimization-pack](https://github.com/pmeenan/cf-workers/tree/master/optimization-pack)
 * Or may be in your next update you can add the following feature:
 * Fast Google fonts and Third party Scripts.
 *  Plugin Contributor [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/workers-api-error-invalid_route_script_missing-err-code-10019/#post-14085682)
 * Hi [@zakirstage](https://wordpress.org/support/users/zakirstage/),
    You definitely
   can. If you check the FAQ tab inside the plugin settings it is clearly mentioned
   how you can overwrite the existing worker code to add your own feature. So, you
   basically start with our code, read it, understand it and then add more features
   as you like it by overwriting the default worker script. Screenshot: [https://i.imgur.com/vCcETwY.png](https://i.imgur.com/vCcETwY.png)
 *  Thread Starter [Zakir Sajib](https://wordpress.org/support/users/zakirstage/)
 * (@zakirstage)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/workers-api-error-invalid_route_script_missing-err-code-10019/#post-14085852)
 * Lovely. Thank You. Please close this support ticket.
 *  [cyberloner](https://wordpress.org/support/users/cyberloner/)
 * (@cyberloner)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/workers-api-error-invalid_route_script_missing-err-code-10019/#post-14138139)
 * workers.api.error.duplicate_route (err code: 10020)
    i get this when switch between
   2 hosting and it won’t work now.. any way to fix it?
 *  Plugin Contributor [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/workers-api-error-invalid_route_script_missing-err-code-10019/#post-14138184)
 * Hi [@cyberloner](https://wordpress.org/support/users/cyberloner/),
    Check your
   Cloudflare dashboard worker tab that there is no other worker there pointing 
   to the same route like `https://example.com/*`

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘workers.api.error.invalid_route_script_missing (err code: 10019 )’ is
closed to new replies.

 * ![](https://ps.w.org/wp-cloudflare-page-cache/assets/icon-256x256.gif?rev=3234997)
 * [Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals](https://wordpress.org/plugins/wp-cloudflare-page-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cloudflare-page-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/reviews/)

 * 10 replies
 * 3 participants
 * Last reply from: [iSaumya](https://wordpress.org/support/users/isaumya/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/workers-api-error-invalid_route_script_missing-err-code-10019/#post-14138184)
 * Status: resolved