Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexander-schranz/psr6-symfony-http-cache-store-analyser
Analyse what URL and Tags are stored in toflar/psr6-symfony-http-cache-store HTTP Cache store.
https://github.com/alexander-schranz/psr6-symfony-http-cache-store-analyser
Last synced: 7 days ago
JSON representation
Analyse what URL and Tags are stored in toflar/psr6-symfony-http-cache-store HTTP Cache store.
- Host: GitHub
- URL: https://github.com/alexander-schranz/psr6-symfony-http-cache-store-analyser
- Owner: alexander-schranz
- License: mit
- Created: 2022-10-12T18:06:29.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-17T13:07:20.000Z (about 2 years ago)
- Last Synced: 2024-10-27T05:02:20.775Z (about 2 months ago)
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PSR6 Symfony HTTP Cache Store Analyser
Analyse what URL and Tags are stored in [toflar/psr6-symfony-http-cache-store](https://github.com/toflar/psr6-symfony-http-cache-store) HTTP Cache store.
## Usage
```bash
composer require schranz/psr6-symfony-http-cache-store-analyser
```Copy your `http_cache` directory into `var` directory so its available under `var/http_cache/@`.
Run the analyser:
```bash
vendor/bin/analyse var/http_cache
```Output is something like this:
```bash
URL: https://example.org/
CACHE-CONTROL: max-age=240, public, s-maxage=86400
EXPIRES: Sat, 15 Oct 2022 21:56:32 GMT
X-REVERSE-PROXY-TTL: 86400
FOS-SMAXAGE-BACKUP: 240
TAGS (2): media-1,page-2
QUERIES (4):
-
- ?utm_campaign=some&utm_content=content&utm_medium=newsletter&utm_source=anysource
- ?page=1
- ?page=2
------------------------------------------------------------------------------------------------URL: https://example.org/other
CACHE-CONTROL: max-age=240, public, s-maxage=86400
EXPIRES: Sat, 15 Oct 2022 21:56:32 GMT
X-REVERSE-PROXY-TTL: 86400
FOS-SMAXAGE-BACKUP: 240
TAGS (1): media-2
QUERIES (1):
-```
It is also possible to filter out a specific url only:
```bash
vendor/bin/analyse var/http_cache https://example.org/other
```For a single url its also possible to get the raw unmarshalled ata via
which shows you all headers and other infos:```bash
vendor/bin/analyse var/http_cache https://example.org/other --raw
```