Project

General

Profile

Actions

Bug #12830

closed

Plugin can't use "with-cached-resources" for js/css

Added by François ARMAND almost 6 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
N/A
Category:
-
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

Right now, plugins can't use the "with-cached-resources" directive that allows to versionned & cache plugin resources.

This is needed to avoid the case where the plugin changed css/js and the user updated it.

We also need to be more specific for plugin resources than just rudder version because the plugin can change its resources with its version.

So we propose to:

- update with-cached-resource to special case plugin resource rewrite
- we know we are dealing with a plugin resources because the url looks like "toserver/plugin-short-id".
- in that case, we also add plugin version with a pending "?plugin-version". That will allows to invalidate browser cache WITHOUT needing to modify the caching scheme on rudder side.

It may need a breaking in plugin management code so that we have a easy way to find back plugin information based on their id (so -> Rudder 4.3 only)


Related issues 1 (0 open1 closed)

Is duplicate of API authorizations - Bug #12808: Rudder 4.3 missing important features for plugins, especially ACL oneReleasedFrançois ARMANDActions
Actions

Also available in: Atom PDF