You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Configure the package via `config/image-transform-url.php` to set your [`public_path`](https://laravel.com/docs/12.x/helpers#method-public-path) directory, from where you want to transform the images.
43
+
1. Configure the package via `image-transform-url.php` to set your [`public_path`](https://laravel.com/docs/12.x/helpers#method-public-path) directory, from where you want to transform the images.
44
44
It is recommended to use a dedicated directory for your images in order to have a separation of concerns.
45
45
46
46
2. Test your first image transformation:
@@ -98,9 +98,17 @@ To force a revalidation, you can either:
98
98
3. change the version number (integer) in the options (e.g. `version=2`)
99
99
4. or flush the entire cache of your application using the `php artisan cache:clear` command.
100
100
101
+
## Rate Limiting
102
+
103
+
Another feature of this package is the ability to limit the number of transformations that the image transformation route should process per path and IP address within a given time frame.
104
+
105
+
The rate limit will come into effect for new transformation requests only, and will not affect previously cached images. It is also only applied in the `production` environment.
106
+
107
+
You can configure the rate limit settings in the `image-transform-url.php` configuration file.
108
+
101
109
## Usage with CDNs
102
110
103
-
This package is designed to work seamlessly with CDNs like Cloudflare, BunnyCDN, and others.
111
+
The package is designed to work seamlessly with CDNs like Cloudflare, BunnyCDN, and others.
104
112
105
113
The most important configuration is the [`Cache-Control`](https://developer.mozilla.org/de/docs/Web/HTTP/Reference/Headers/Cache-Control) header, which you can customize to your liking in the `image-transform-url.php` configuration file.
0 commit comments