我正在尝试制作一个网络应用程序,用户可以在其中互相玩环状国际象棋。这是我在服务器上的app.js:
var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var port = process.env.PORT || 8000;
app.use(express.static('public'));
app.get('
我的网站从另一个网站加载iframe。我想缓存这个iframe,然后加载一个缓存副本。
不幸的是,我不能使用nginx,这就是为什么我对如何使用php / js / ajax / xml或其他方式缓存iframe感兴趣。
可能是这样的:
- create iframe.php file on server with loading another site iframe
- iframe.php load iframe first time, than cache it
- include iframe.php where I need (but I don't
underst