CDN for phpBB?

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Get Involved
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
User avatar
Registered User
Posts: 942
Joined: Sun Apr 18, 2010 6:14 pm

CDN for phpBB?

Post by heredia21 » Fri Jan 20, 2012 4:59 am

Any way to integrate a CDN with phpBB? What is the best way?
Best BlackBerry website for all users! BlackBerry News -

Former Team Member
Posts: 1221
Joined: Sat Jan 30, 2010 4:42 pm
Location: NYC

Re: CDN for phpBB?

Post by Oleg » Fri Jan 20, 2012 5:23 am

It is fairly straightforward to find all references to static assets in phpbb via regular expressions. The challenge is that image urls and such are relative, not absolute. You would have to process each level of files separately to properly convert relative to absolute urls. Then you could prepend host and path to the urls to make all urls point to the cdn of your choice.

You can use my asset timestamping script for inspiration: (built and tested against phpbb 3.0.5 or so).

For other thoughts see this topic: ... 84&t=33213
Participate in phpBB development: Get involved | Issue tracker | Report a bug | Development board | [url=irc://]Development IRC chat[/url]
My stuff:


Return to “[3.0.x] Support Forum”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 40 guests