0

I have created a new grid editor, and have deployed it to my production server. When on my development machine, a change to the grid.editors.config.js is reflected immediately.

However, on my production server, a change to grid.editors.config.js has no effect.

After some research, I have found that the issue is probably the client dependency cache. I have tried the following:

  • Removing the files from App_Data/TEMP/ClientDependency
  • Incrementing the version number in Config/ClientDependency.config
  • Recycling the application pool
  • Clearing the browser cache
  • Restarting the server

What am I missing? When I add a query string, ie. https://mywebsite/config/grid.editors.config.js?v=1 then the changes are shown, which means the file has definitely updated on the server.

What do I need to do to update the file?

LoveFortyDown
  • 1,011
  • 2
  • 17
  • 37

3 Answers3

0

Are you using any expiration headers for caching js on your website?

You could try to delete the following files:

App_Data/TEMP/DistCache

App_Data/TEMP/PluginCache
user1725266
  • 456
  • 1
  • 4
  • 22
0

I find that it's a simple case of the browser caching your assets locally. You can usually force a refresh by pressing CTRL + F5 or holding CTRL and clicking refresh in your web browser and the changes are then visible.

ProNotion
  • 3,662
  • 3
  • 21
  • 30
0

As it turns out, the issue was caused by a third party that provides DDoS protection to the site - content was cached via the third party and so changes to files were not being reflected.

LoveFortyDown
  • 1,011
  • 2
  • 17
  • 37