bdkjones / CodeKit-1-Old

146 stars 1 forks source link

Feature Request: File Versioning #646

Open 0xsven opened 11 years ago

0xsven commented 11 years ago

I would love to see a feature where codekit automatically renames my css/js files in order to force browsers to download the latest versions of the stylesheet.

It could work like that:

    <!--@codekit-overwrite "style.css"; -->
        <link type="text/css" rel="stylesheet" href="style.css">
    <!--@codekit-overwrite End -->

If style.css changes (eg. through sass compiling) it gets inserted into the comments.

:)

bdkjones commented 11 years ago

Hi Sven,

The lower-overhead approach is to simply disable your browser cache when developing.

CodeKit 2.0 will do that automatically, so this should not be an issue in the future.

Sent from my iPhone

On Jul 18, 2013, at 6:01, Sven Schmidt notifications@github.com wrote:

I would love to see a feature where codekit automatically renames my css/js files in order to force browsers to download the latest versions of the stylesheet.

It could work like that:

Activate 'File Versioning' on your style.css Chose a versioning rule (Random number or add an increment) Find the file where it is referenced and add an anchor like that: If style.css changes (eg. through sass compiling) it gets inserted into the comments.

:)

— Reply to this email directly or view it on GitHub.

0xsven commented 11 years ago

I was talking about forcing the user's browser to load the new changes instead of using the cached version.