Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cloudflare_worker_purge
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
cloudflare_worker_purge
Commits
e66e4aaa
Commit
e66e4aaa
authored
5 months ago
by
sarwan verma
Committed by
David Barratt
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3216537
by sarwan_verma, davidwbarratt, Adrian83, clarkssquared: Add README.md
parent
de81220a
No related branches found
No related tags found
1 merge request
!3
added reade me file
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+36
-0
36 additions, 0 deletions
README.md
with
36 additions
and
0 deletions
README.md
0 → 100644
+
36
−
0
View file @
e66e4aaa
# Cloudflare Worker Purge
The Cloudflare Worker Purge module integrates with
[
Purge
](
https://www.drupal.org/project/purge
)
in order to send purge
requests to a custom
[
Cloudflare Worker
](
https://developers.cloudflare.com/workers/
)
like
[
Cache Tag
](
https://github.com/davidbarratt/cache-tag
)
.
> [!IMPORTANT]
> By the time a response from an origin reaches a [Worker](https://developers.cloudflare.com/workers/), Cloudflare
> has already swallowed the `Cache-Tag` header and it is no longer available. To get around this, this modules sends a
> custom `X-Cache-Tag` header instead.
## Table of contents
-
Requirements
-
Recommended modules
-
Installation
-
Configuration
-
Maintainers
## Requirements
-
[
Purge
](
https://www.drupal.org/project/purge
)
-
A custom
[
Cloudflare Worker
](
https://developers.cloudflare.com/workers/
)
like
[
Cache Tag
](
https://github.com/davidbarratt/cache-tag
)
## Recommended modules
-
[
Key
](
https://www.drupal.org/project/key
)
(
if
using an API Key to authenticate). You
**should**
use _something_ to
authenticate requests to the worker, otherwise anyone can make purge requests.
## Installation
Install as you would normally install a contributed Drupal module. For further information, see
[
Installing Drupal Modules
](
https://www.drupal.org/docs/extending-drupal/installing-drupal-modules
)
.
## Configuration
The module accepts a URL that is used for purge requests and, if the
[
Key
](
https://www.drupal.org/project/key
)
module is
installed, an optional API Key to pass to the
[
Cloudflare Worker
](
https://developers.cloudflare.com/workers/
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment