{"id":16453115,"url":"https://github.com/italomaia/flask-rev","last_synced_at":"2025-10-27T07:30:40.913Z","repository":{"id":57430682,"uuid":"64672650","full_name":"italomaia/flask-rev","owner":"italomaia","description":"Allows you to keep an aggressive cache policy with your HTTP server while using flask.","archived":false,"fork":false,"pushed_at":"2019-12-14T23:08:24.000Z","size":27,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-27T09:09:01.853Z","etag":null,"topics":["files","flask","hash","python","static"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/italomaia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-01T14:14:05.000Z","updated_at":"2021-05-12T08:15:23.000Z","dependencies_parsed_at":"2022-09-13T15:23:40.109Z","dependency_job_id":null,"html_url":"https://github.com/italomaia/flask-rev","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/italomaia%2Fflask-rev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/italomaia%2Fflask-rev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/italomaia%2Fflask-rev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/italomaia%2Fflask-rev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/italomaia","download_url":"https://codeload.github.com/italomaia/flask-rev/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219861694,"owners_count":16555988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["files","flask","hash","python","static"],"created_at":"2024-10-11T10:14:44.055Z","updated_at":"2025-10-27T07:30:40.579Z","avatar_url":"https://github.com/italomaia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![travis status](https://travis-ci.org/italomaia/flask-rev.svg?branch=master)\n\n# Flask-Rev\n\nFlask-Rev is a very simple flask extension that aims to make it easier to integrate\nflask and those fancy reactive javascript front-ends out there (react, angular, vuejs...).\n It allows you to keep an aggressive cache with your HTTP server **AND** always return fresh\n static content to user requests. It does so by appending the static file hash to the static\n file's url as a query string parameter.\n\n Notice that appending the hash only happens when debug mode is False. Also, be aware\n  that the hash cache is created during runtime. So, you may experience some\n  \"warming up\" slow-down in the first request. This behavior might change in the\n  future.\n\n **The advantage of this approach**? Your static files\n names won't change between updates.\n\nThis plugin is heavely based upon these two snippets:\n\n* https://gist.github.com/mfenniak/2978805\n* https://gist.github.com/Ostrovski/f16779933ceee3a9d181#file-flask_static_files_cache_invalidator-py-L20\n\nThanks!\n\n## Installation\n\npip install flask-rev\n\n## Usage\n```py\nfrom flask import Flask, url_for\nfrom flask_rev import Rev\n\napp = Flask(__name__)\nRev(app)\n\nurl_for('static', filename='bundle.js')\n# outputs: /static/bundle.js?h=\u003cmd5hash\u003e\n```\n\n## Running Tests\n\n```bash\n\u003e python3 setup.py test\n\u003e # or\n\u003e tox\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitalomaia%2Fflask-rev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitalomaia%2Fflask-rev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitalomaia%2Fflask-rev/lists"}