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.
Suggested Hosts
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
User avatar
heredia21
Registered User
Posts: 942
Joined: Sun Apr 18, 2010 6:14 pm
Contact:

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 - http://blackberryempire.com

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

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: https://gist.github.com/1645495 (built and tested against phpbb 3.0.5 or so).

For other thoughts see this topic: http://area51.phpbb.com/phpBB/viewtopic ... 84&t=33213
Participate in phpBB development: Get involved | Issue tracker | Report a bug | Development board | [url=irc://chat.freenode.net/phpbb-dev]Development IRC chat[/url]
My stuff: mindlinkgame.com

Locked

Return to “[3.0.x] Support Forum”

Who is online

Users browsing this forum: JimA and 52 guests