NV / chrome-devtools-autosave

Auto-saving CSS and JavaScript changes from the Chrome Developer Tools
MIT License
1.04k stars 89 forks source link

Version numbers get added to file names #10

Closed spaceribs closed 12 years ago

spaceribs commented 12 years ago

To break caching, I have version numbers at the end of the css and javascript files:

<link rel="stylesheet" href="css/reset.css?v=1.0">

When saving, this is added to the end of the filename.

NV commented 12 years ago

Thanks for heads up!

Temporary fix:

  1. chrome://extensions/
  2. DevTools Autosave Options
  3. Replace ^file:// with ^file://[^?]+.
maiis commented 12 years ago

Hi, i have the same issue.

I'm working in a ruby / rails environnement and my files get ?body=1. The temporary fix is not working as i use a routes to my local domain (as explained in issue #7).

ENOENT, no such file or directory '***/site.layout.css?body=1'
NV commented 12 years ago

Could you give me your routes.js, Resource RegExp and "Post to" URL from Options?

'***/site.layout.css?body=1'

*** — is it actual path of you just blacked out the actual path?

NV commented 12 years ago

Fixed in autosave v0.2.1. All you need to do is npm update -g autosave. You don't have to change anything in the extension Options; it does't help, sorry about that.