{"id":7415,"date":"2014-06-12T03:12:43","date_gmt":"2014-06-12T03:12:43","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/12\/wordpress-returns-unfound-file-only-when-cacheing-enabled-collection-of-common-programming-errors\/"},"modified":"2014-06-12T03:12:43","modified_gmt":"2014-06-12T03:12:43","slug":"wordpress-returns-unfound-file-only-when-cacheing-enabled-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/12\/wordpress-returns-unfound-file-only-when-cacheing-enabled-collection-of-common-programming-errors\/","title":{"rendered":"WordPress returns unfound file only when cacheing enabled-Collection of common programming errors"},"content":{"rendered":"<p>Seems like a simple problem, but I can&#8217;t find an answer.<\/p>\n<p>With cacheing disabled, everything works fine. With cacheing enabled the following javascript include returns a WordPress &#8216;page unfound&#8217; error.<\/p>\n<p>http:\/\/myserver\/wp-content\/plugins\/myplugin\/js\/jquery.cycle.all.min.js<\/p>\n<p>I&#8217;m disabling the cache using the Firefox web developer tool, but I can&#8217;t see that that should have any bearing in the issue. For some reason, WordPress can&#8217;t find a legit file.<\/p>\n<p>The script is properly registered and queued with the following code:<\/p>\n<pre><code> wp_register_script(\"jquery.cycle.all.min.js\", $plugin_url . '\/js\/jquery.cycle.all.min.js', 'jquery');\n wp_enqueue_script(\"jquery.cycle.all.min.js\");\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Seems like a simple problem, but I can&#8217;t find an answer. With cacheing disabled, everything works fine. With cacheing enabled the following javascript include returns a WordPress &#8216;page unfound&#8217; error. http:\/\/myserver\/wp-content\/plugins\/myplugin\/js\/jquery.cycle.all.min.js I&#8217;m disabling the cache using the Firefox web developer tool, but I can&#8217;t see that that should have any bearing in the issue. For [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7415","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7415"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7415\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}