Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page Builder Elements - Compress Cached Data #4435

Merged
merged 18 commits into from
Dec 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: use URI encoding instead of base64
  • Loading branch information
adrians5j committed Dec 10, 2024
commit 4ebf599634ef5cb4fab70280bacf115316a20d33
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ describe("extractPeLoaderDataFromHtml Tests", () => {
});
});

const TEST_STRING = `...<li><h1>Starship</h1><div>Starship and Super Heavy Rocket represent a fully reusable transportation system designed to service all Earth orbit needs as well as the Moon and Mars. This two-stage vehicle — composed of the Super Heavy rocket (booster) and Starship (ship) — will eventually replace Falcon 9, Falcon Heavy and Dragon.</div><br><div>More info at&nbsp;<a href="https://en.wikipedia.org/wiki/SpaceX_Starship" target="_blank" rel="noreferrer">https://en.wikipedia.org/wiki/SpaceX_Starship</a></div></li></ul></pb-spacex></pb-cell></pb-grid></pb-block></pb-document></main><footer data-testid="pb-footer" class="wby-1lh86qf"><div class="wby-xv6w56"><div class="logo wby-1i3ok2b"><a href="/"></a><div class="copy">DEVR © 2024</div></div></div></footer></div></div><pe-loader-data-cache data-key="GfT8AoRsYT-1238102521" data-value="W3siZGVzY3JpcHRpb24iOiJUaGUgRmFsY29uIDEgd2FzIGFuIGV4cGVuZGFibGUgbGF1bmNoIHN5c3RlbSBwcml2YXRlbHkgZGV2ZWxvcGVkIGFuZCBtYW51ZmFjdHVyZWQgYnkgU3BhY2VYIGR1cmluZyAyMDA2LTIwMDkuIE9uIDI4IFNlcHRlbWJlciAyMDA4LCBGYWxjb24gMSBiZWNhbWUgdGhlIGZpcnN0IHByaXZhdG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jA5ZDFlZCIsIm5hbWUiOiJGYWxjb24gSGVhdnkiLCJ3aWtpcGVkaWEiOiJodHRwczovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9GYWxjb25fSGVhdnkifSx7ImRlc2NyaXB0aW9uIjoiU3RhcnNoaXAgYW5kIFN1cGVyIEhlYXZ5IFJvY2tldCByZXByZXNlbnQgYSBmdWxseSByZXVzYWJsZSB0cmFuc3BvcnRhdGlvbiBzeXN0ZW0gZGVzaWduZWQgdG8gc2VydmljZSBhbGwgRWFydGggb3JiaXQgbmVlZHMgYXMgd2VsbCBhcyB0aGUgTW9vbiBhbmQgTWFycy4gVGhpcyB0d28tc3RhZ2UgdmVoaWNsZSDDosKAwpQgY29tcG9zZWQgb2YgdGhlIFN1cGVyIEhlYXZ5IHJvY2tldCAoYm9vc3RlcikgYW5kIFN0YXJzaGlwIChzaGlwKSDDosKAwpQgd2lsbCBldmVudHVhbGx5IHJlcGxhY2UgRmFsY29uIDksIEZhbGNvbiBIZWF2eSBhbmQgRHJhZ29uLiIsImlkIjoiNWU5ZDBkOTZlZGE2OTkzODJkMDlkMWVlIiwibmFtZSI6IlN0YXJzaGlwIiwid2lraXBlZGlhIjoiaHR0cHM6Ly9lbi53aWtpcGVkaWEub3JnL3dpa2kvU3BhY2VYX1N0YXJzaGlwIn1d"></pe-loader-data-cache></body></html>`;
const TEST_STRING = `...<li><h1>Starship</h1><div>Starship and Super Heavy Rocket represent a fully reusable transportation system designed to service all Earth orbit needs as well as the Moon and Mars. This two-stage vehicle — composed of the Super Heavy rocket (booster) and Starship (ship) — will eventually replace Falcon 9, Falcon Heavy and Dragon.</div><br><div>More info at&nbsp;<a href="https://en.wikipedia.org/wiki/SpaceX_Starship" target="_blank" rel="noreferrer">https://en.wikipedia.org/wiki/SpaceX_Starship</a></div></li></ul></pb-spacex></pb-cell></pb-grid></pb-block></pb-document></main><footer data-testid="pb-footer" class="wby-1lh86qf"><div class="wby-xv6w56"><div class="logo wby-1i3ok2b"><a href="/"></a><div class="copy">DEVR © 2024</div></div></div></footer></div></div><pe-loader-data-cache data-key="GfT8AoRsYT-1238102521" data-value="%5B%7B%22description%22%3A%22The%20Falcon%201%20was%20an%20expendable%20launch%20system%20privately%20developed%20and%20manufactured%20by%20SpaceX%20during%202006-2009.%20On%2028%20September%202008%2C%20Falcon%201%20became%20the%20first%20privately-developed%20liquid-fuel%20launch%20vehicle%20to%20go%20into%20orbit%20around%20the%20Earth.%22%2C%22id%22%3A%225e9d0d95eda69955f709d1eb%22%2C%22name%22%3A%22Falcon%201%22%2C%22wikipedia%22%3A%22https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FFalcon_1%22%7D%2C%7B%22description%22%3A%22Falcon%209%20is%20a%20two-stage%20rocket%20designed%20and%20manufactured%20by%20SpaceX%20for%20the%20reliable%20and%20safe%20transport%20of%20satellites%20and%20the%20Dragon%20spacecraft%20into%20orbit.%22%2C%22id%22%3A%225e9d0d95eda69973a809d1ec%22%2C%22name%22%3A%22Falcon%209%22%2C%22wikipedia%22%3A%22https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FFalcon_9%22%7D%2C%7B%22description%22%3A%22With%20the%20ability%20to%20lift%20into%20orbit%20over%2054%20metric%20tons%20(119%2C000%20lb)--a%20mass%20equivalent%20to%20a%20737%20jetliner%20loaded%20with%20passengers%2C%20crew%2C%20luggage%20and%20fuel--Falcon%20Heavy%20can%20lift%20more%20than%20twice%20the%20payload%20of%20the%20next%20closest%20operational%20vehicle%2C%20the%20Delta%20IV%20Heavy%2C%20at%20one-third%20the%20cost.%22%2C%22id%22%3A%225e9d0d95eda69974db09d1ed%22%2C%22name%22%3A%22Falcon%20Heavy%22%2C%22wikipedia%22%3A%22https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FFalcon_Heavy%22%7D%2C%7B%22description%22%3A%22Starship%20and%20Super%20Heavy%20Rocket%20represent%20a%20fully%20reusable%20transportation%20system%20designed%20to%20service%20all%20Earth%20orbit%20needs%20as%20well%20as%20the%20Moon%20and%20Mars.%20This%20two-stage%20vehicle%20%C3%83%C2%A2%C3%82%C2%80%C3%82%C2%94%20composed%20of%20the%20Super%20Heavy%20rocket%20(booster)%20and%20Starship%20(ship)%20%C3%83%C2%A2%C3%82%C2%80%C3%82%C2%94%20will%20eventually%20replace%20Falcon%209%2C%20Falcon%20Heavy%20and%20Dragon.%22%2C%22id%22%3A%225e9d0d96eda699382d09d1ee%22%2C%22name%22%3A%22Starship%22%2C%22wikipedia%22%3A%22https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FSpaceX_Starship%22%7D%5D"></pe-loader-data-cache></body></html>`;
Loading