Skip to content

Math random #526

Open
Open
@chreesp

Description

@chreesp

Hello,

I have a use case where upon compiling a random generated number would be awesome.
Use case is to bypass browser's asset caching.

It would be awesome if I could replace this

background: url(../path/to/image.png?12345);

with something like this:

background: url(../path/to/image.png?random(5));

In this scenario I wouldn't have to worry if I've uploaded files to production server without manually changing version number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions