Wordpress returns an unreasonable file only when caching is enabled

It seems to be a simple problem, but I can not find the answer.

When disabling caching, everything works fine. With caching turned on, enable the following javascript that returns the "Wordpress Page Error Page Error" error.

http: //myserver/wp-content/plugins/myplugin/js/jquery.cycle.all.min.js

I will disable the cache using the Firefox web developer tool, but I don't see that this should have anything to do with the problem. For some reason, Wordpress cannot find the legit file.

The script is correctly registered and queued with the following code:

wp_register_script("jquery.cycle.all.min.js", $plugin_url . '/js/jquery.cycle.all.min.js', 'jquery'); wp_enqueue_script("jquery.cycle.all.min.js"); 
+7
source share
2 answers

Does your cache return a problem? If not, then this is a problem with the browser cache, not the server. If the problem returns, you should look at the headlines, as Samuel Edwin Ward mentioned.

+1
source

Clear browser cache. (I know ...).

Unexpected behavior when turning on and off the browser cache with files stored in the cache for a long time.

+2
source

All Articles